Coder Social home page Coder Social logo

discord-notification-bot's Introduction

Discord Notification bot

This is a simple Discord notification bot made using Nodejs.

Requirements: NodeJS, Docker (Optional)

To get started:

  1. Go to https://discord.com/developers/applications and create a new application
  2. Copy client id and go to https://discordapi.com/permissions.html
  3. Select all necessary roles. I selected all the Text Permissions and Administrator (just in case it didn't have permission to delete the command message)
  4. Click the generated link at the bottom and add the bot to your server
  5. Go back to the discord bot application window and click on Bot from the side drawer
  6. Click on the Copy button to copy the token for the bot
  7. Create a new file in the home directory of this project and name it "secret.js"
  8. Copy and paste this into secret.js:
    module.exports = {
     key : "KEY_GOES_HERE"
    };
  9. Replace KEY_GOES_HERE with the key you have just copied
  10. You can start the discord spam bot server by running node . in the terminal
  11. Once the bot is up and running, you should see "Spam bot is online!" outputted to the terminal window

Optional steps to dockerize app:

  1. Run docker-compose build and it should download all the necessary files and build the docker image for you
  2. Run docker-compose up -d and it should start the docker image for you
  3. Docker image should be up and running now. You can check that it is running by typing javascript docker container ls into the terminal to see all active docker containers (or use the docker interface).

Commands:

  • !help - Displays list of commands and their usage
  • !spam
    • Definition: !spam "Insert message between quotes" #Number of times to repeat message @Specify the time to spam message in 24hr format
    • Usage: !spam "Hello" #5 @2020-10-19T18:55

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.