This project built using
Python 3.12.x
Create a discord application and get token from the Discord Developer Portal and add it to the .env
file. Refer to the .env.example
file for the format.
We are using pickle to store the data. The database file is data/database.pkl
. You can delete this file to reset the database.
Clone this repo and open the folder, then run the below to commands in the terminal to create a virtual environment.
# windows
py -m venv venv
# linux
python3 -m venv venv
Activate virutal environment
.\venv\Scripts\activate
Install dependencies
pip install -r requirements-dev.txt
# Windows
py main.py
# Linux
python3 main.py
If you added any new slash commands or updated the existing ones, you need to sync the commands with the discord server. To sync the commands, first add your discord user id in cogs/admin.py
file and run the following command in the discord server.
Note: you have to start the bot before running this command
!sync