Follow these steps to get the bot up and running in your system
# clone the repository
git clone https://github.com/kurzgesagt-in-a-nutshell/kurzgesagtbot
# install virtualenv if you haven't already (Or use another Virtual Environment manager)
pip install virtualenv
# Setup a venv
python3.11 -m venv birdbot
source birdbot/bin/activate
# install the dependencies
pip install -r requirements.txt
Ensure you have excluded your virtualenv in pyproject.toml
to prevent pyright errors
Navigate to app/utils/config.py
and change the values of the variables according to your requirements
Create a file named .env
and paste the following lines in it. Change the values of the variables according to your requirements
MAIN_BOT_TOKEN='INSERT_MAIN_BOT_TOKEN'
BETA_BOT_TOKEN='INSERT_BETA_BOT_TOKEN'
ALPHA_BOT_TOKEN='INSERT_ALPHA_BOT_TOKEN'
DB_KEY='INSERT_MONGODB_DATABASE_CONNECTION_URL'
Run the bot with, use the -a
or -b
option to run testing versions of the bot
python3 startbot.py [-b] [-a]
If you need additional help you may join our Discord Server
Please read our contributor guidelines here before contributing
Before submitting a pull request please ensure you conform to our PyRight standards and be sure to use ISort import sorter and the Black code formatter. Run these commands (preferably in the given order) and make sure they do not throw any errors:
pyright .
isort .
black .