Skip to content

Use hex color codes from discord text channels to assign users color roles

License

Notifications You must be signed in to change notification settings

amt/discord-rolecolor-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord RoleColor Bot

Installation

Uses Python 3.5.2+

Optional:

  • python3 -m venv env
  • source env/bin/activate

Required:

  1. pip install -r requirements.txt

  2. Create a discord account for your bot:

    • Follow the steps here
  3. 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

Usage

python3 main.py

Notes

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: alt-text

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:

alt-text

About

Use hex color codes from discord text channels to assign users color roles

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published