A Discord bot that facilitates countdowns and generates detailed countdown analytics
-
Go to the Discord Developer Portal and create an application and a bot
-
Setup a database and run the bot (see below)
-
Add the bot to your server:
https://discordapp.com/oauth2/authorize?client_id=BOT_ID_HERE&scope=bot&permissions=101440
-
Send
!help
to the bot to get instructions for getting started
Create the .env
file and add settings:
BOT_TOKEN=...
DB_PASSWORD=...
Start docker containers:
docker compose up
Install the Python dependencies
pip install -r requirements.txt
Create .env
file and add settings:
BOT_TOKEN=...
PREFIX=!
DATABASE=postgresql://...
LOG_FILE=log.txt
LOG_LEVEL=INFO
Setup a PostgreSQL database and initialize it:
psql 'postgresql://...' -f models/ddl.sql -f models/dml-utils.sql \
-f models/dml-core.sql -f models/dml-analytics.sql
Run the bot
python -m countdown_bot