due to there being two separate ways of fetching discord objects, one from cache and one as an API call we want to call the latter one if not found in cache. To avoid repeating the same process multiple times I have packed it into functions for the objects in interest
H.M. Grisen
A multi-purpose Discord bot for the Discord server of The Norwegian Student Society
Get started
-
Create a bot user / obtain a bot token. Se her
-
Make a copy of the
.env.examplefile and rename it to.env -
Make sure all the fields are filled
Given a user with a access to a database the bot will create all the necessary tables by itself.
You have two options to run the bot:
Option 1 - Docker (Recommended)
docker-compose up
Option 2 - Manual
-
Install Python 3.12+
-
Install dependencies
pip install -r requirements.txt -U
- Run bot
python src/run.py