Skip to content

Repo dedicated to the discord setup of the PyGreece online Python Community

License

Notifications You must be signed in to change notification settings

pygreece/discord

Repository files navigation

discord

Repo dedicated to the discord setup of the PyGreece online community on Discord.

Features

The bot

Development

To run the bot locally:

  1. Create an application on the Discord Developer portal.
  2. Generate a token that has permissions to manage member roles.
  3. Have the bot join a server.
  4. 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
    
  5. Run uv run alembic upgrade head to create a local development sqlite database.
  6. Run uv run python -m bot to run the bot.

About

Repo dedicated to the discord setup of the PyGreece online Python Community

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published