A discord bot with a PhD in colors.
"Know-Your-Colors" is a Discord bot whose only purpose is to help you broaden your color knowledge.
It will generate and send you a random color name, its hex code and a picture with the actual color.
Use /help to see the whole commands list.
Huge thanks to Chirag Mehta for creating this website: https://chir.ag/projects/name-that-color
How this works:
- The bot generates a random hexcolor
- Accesses Chirag Mehta's website to get the name of the color and RGB value
- Generates an image with the color
- Temporarily saves the image
- Send all the info to Discord (Color name, Hex Code and picture)
- Deletes the image
How to use this:
- Clone the git repo
- Create a virtual environment
- Install all the libraries
- Replace "TOKEN" with your discord token
- Replace "guild" and "channel" with your discord server info
- Replace filepath
- Add the bot to your server
- Run "main.py"
Possible issues and how to fix: If the bot is not sending any image, modify line 72 in main.py. WebDriverWait is by default 2 seconds, but maybe it takes more time for the page to load, so increase that number.