Git Product home page Git Product logo

pamtone-know-your-colors's Introduction

Pamtone

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:

  1. The bot generates a random hexcolor
  2. Accesses Chirag Mehta's website to get the name of the color and RGB value
  3. Generates an image with the color
  4. Temporarily saves the image
  5. Send all the info to Discord (Color name, Hex Code and picture)
  6. Deletes the image

How to use this:

  1. Clone the git repo
  2. Create a virtual environment
  3. Install all the libraries
  4. Replace "TOKEN" with your discord token
  5. Replace "guild" and "channel" with your discord server info
  6. Replace filepath
  7. Add the bot to your server
  8. 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.

pamtone-know-your-colors's People

Contributors

dienuq avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.