A Discord bot written in Python using Discord.py used in the official Intersection Controller server to view members' in-game user data.
First clone the repository to your local machine and enter the freshly created folder.
git clone https://github.com/Feeeeddmmmeee/ICBot
cd ICBotThen set up all the required configuration files.
mkdir config
touch ./config/config.env
echo "TOKEN={YOUR_ACTUAL_TOKEN}" >> ./config/config.env
echo "DEBUG=1" >> ./config/config.envLastly create a virtual environment, download all required packages and run the project :).
python3 -m venv env
source ./env/bin/activate
pip install -r requirements.txt
python3 main.pyAll configuration is done in the config/config.env file. Not much can be configured without changing the source code as it was not needed at the time but below is a list of all the settings.
The bot token has to be put in the TOKEN variable.
Debug mode can be toggled by altering the DEBUG variable. Setting it to 1 enables additional log messages and changes which Discord server is considered the main one. 0 is supposed to be a release mode with less clutter in the logs and proper server settings.