NagBot is a Discord bot written in Python using the discord.py API wrapper to remind users of water and posture checks. At the moment, it is intended to run on a single Discord server per bot instance.
See a list of all commands here.
- Timer to remind users every x minutes with options to disable repeating pings
- Adjustable timer duration and ping message
- Easily add or remove self from bot pings via emoji reactions or bot command
- Ability to reset settings to default
- Logs errors to a separate file
discord.py
discord
python-dotenv
- Clone the NagBot repository
- Install all dependencies from
requirements.txt
- Create a Discord developer account and create an application
- Copy the application token into the
.env
file - Generate an OAuth2 URL with
bot
scope andAdministrator
permission - Use the URL to add the bot to the specified Discord server and run
bot.py
bot.py | Code for NagBot and its functions
timer.py | Custom timer class with countdown and timer states
error.log | Error log for unhandled exceptions
settings.ini | Settings for timer duration, repeating timer mode, ping message
.env | Discord application token for bot