- Optional: Create
venv, and activate viavenv/Scripts/activate. - Install dependencies with
pipenv install- You may need to install Visual Studio Build Tools from here for some dependencies.
- Go to https://developers.google.com/sheets/api/quickstart/python and enable the Google Sheets API.
- Move
credentials.jsonto the project folder.- This will be used on the first command run that needs access to the spreadsheet. You may grant access from the url redirect, and verify the app you created via the 'advanced' option on the bottom left.
- Create an application at https://discord.com/developers/applications.
- Under the app, create a Bot.
- Under Bot/Privileged Gateway Intents, enable both presence intent and server members intent.
- Copy
.envexampleto.env, and add the token from the Bot page. - Invite your bot to your test server via
https://discord.com/api/oauth2/authorize?client_id={CLIENT_ID}&permissions=519232&scope=bot, where the client id is found in your General Information page.
You may run the bot via pipenv run start, or python src/main.py.