Skip to content

mathstrains21/discord-bot-py

 
 

Repository files navigation

Exercism Discord Bot

This is a Python bot built on top of the Discord.py framework.

TODO: Document the various bot features.

Code layout

  • .env contains private configuration values which are populated into the environment.
  • conf.py contains public configuration values which are passed into various Cogs.
  • bot.py is the executable entry point. It instantiates the various Cogs and starts the bot.
  • mentor_requests.py tracks requests on Exercism and updates threads with current requests.
  • mod_message.py provides an app command (or slash command) for mods to send canned messages.
  • track_react.py contains the logic to react to messages with track-specific emojis.

Setup

Exercism library

exercism_lib is a symlink to this Exercism lib, which is used to fetch data from Exercism. Ideally, this would be a proper git submodule and the Exericsm logic would be its own repo, not a shared projects repo.

ln -s $root/python-projects/exercism.org exercism_lib

Configurations

The dotenv module is used to load some configurations from a private .env file. Expected environment variables include:

  • DISCORD_TOKEN: The bot token used by the bot to identify with Discord.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%