Giter VIP home page Giter VIP logo

discord-colorbot's Introduction

discord-colorbot

Description

This is a simple bot to allow users to edit their color via a text command within any text channel the bot has access to.

Prerequisites

  • node
  • npm
  • Assumes you are an admin/own the server you want this bot to run on

Installation

  1. Clone this repo.
  2. Run npm install.
  3. Create a new app under your Discord account through Discord's Developer Docs .
  4. Within that new app, create a bot user.
  5. The bot user above should at least give you a Token field. Click to reveal it, copy it, and open app_credentials.json within this repo.
  6. Within app_credentials.json, replace token_goes_here with that copied token of your bot user.
  7. Navigate to the Discord Permissions Calculator, and generate an invite link for your bot. Since this bot works through roles, we need the Manage Roles permission. So you can click Manage Roles, and supply the Client ID in the bottom text field (which is on the same page as where you got the Token). You'll be given the invite link below. So if your bot's client ID is 7, your invite link would be: https://discordapp.com/oauth2/authorize?client_id=7&scope=bot&permissions=268435456.
  8. Once the bot is successfully added to your server, it should have a new role with the same name as the app you created in Discord. Go into Server Settings -> Roles, and drag the role to the top/highest priority. This must be done, or the bot will not be able to manage the color roles as intended and will not work properly. The role order should look like this, where ColorBot is the role of my bot user: example
  9. Run npm start and the bot should run and work as intended.

Usage

Simply type .color #XXXXXX into a text channel the bot has access to, where #XXXXXX is a valid hex code.

This may be changed in the future to support looser formats, such as XXXXXX instead of #XXXXXX.

License

Provided under the MIT License.

discord-colorbot's People

Contributors

joseph-galindo 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.