Repo dedicated to the discord setup of the PyGreece online community on Discord.
The bot
To run the bot locally:
- Create an application on the Discord Developer portal.
- Generate a token that has permissions to manage member roles.
- Have the bot join a server.
- Copy
.env.sample
into a new file called.env
:DISCORD_TOKEN=<insert the token created above here> DISCORD_GUILD=<test server name> DATABASE_URL="postgresql+asyncpg://<username>:<password>@postgres/<db>" # Example name for local sqlite database MEMBER_ROLE_NAME="members" # Example role for members COC_MESSAGE_ID=1293819238 # Example message id for COC message
- Run
uv run alembic upgrade head
to create a local developmentsqlite
database. - Run
uv run python -m bot
to run the bot.