This is a simple Discord notification bot made using Nodejs.
Requirements: NodeJS, Docker (Optional)
- Go to https://discord.com/developers/applications and create a new application
- Copy client id and go to https://discordapi.com/permissions.html
- 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)
- Click the generated link at the bottom and add the bot to your server
- Go back to the discord bot application window and click on Bot from the side drawer
- Click on the Copy button to copy the token for the bot
- Create a new file in the home directory of this project and name it "secret.js"
- Copy and paste this into secret.js:
module.exports = { key : "KEY_GOES_HERE" };
- Replace KEY_GOES_HERE with the key you have just copied
- You can start the discord spam bot server by running
node .
in the terminal - Once the bot is up and running, you should see "Spam bot is online!" outputted to the terminal window
- Run
docker-compose build
and it should download all the necessary files and build the docker image for you - Run
docker-compose up -d
and it should start the docker image for you - 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).
- !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