Uses Python 3.5.2+
Optional:
python3 -m venv env
source env/bin/activate
Required:
-
pip install -r requirements.txt
-
Create a discord account for your bot:
- Follow the steps here
-
Add your bot token to your environment variables
- Linux
export DISCORD_COLOR_BOT_TOKEN=YOUR_TOKEN_HERE
- Windows
set DISCORD_COLOR_BOT_TOKEN=YOUR_TOKEN_HERE
- Linux
python3 main.py
Discord uses the color of the user's highest role, any role higher than the role assigned by the bot will be the color.
The easiest way to avoid any problems with this is to have no colors for any roles except for the ones that will be made by the bot.
You can check this by making sure all non-bot roles are set to the default:
The bot will delete any unused roles that are valid hex color codes if those are being used as role names.
After usage, the "Roles" list will look as follows: