A simple quick mute bot written in node.js
In the interest of making this easier for you, I've set up an app.json and heroku deploy button (below).
- Install node.js version 8 or higher, I prefer the LTS release.
- Clone this repo (
git clone https://github.com/TobiTenno/QuickMute.git
) - Navigate to the new directory (
cd QuickMute
) - Install dependencies (
npm i
) - Use pm2 or your choice of process managers to set environment variables.
Example:
{
"apps": [
{
"name": "quickmute",
"script": "index.js",
"exec_interpreter" : "node",
"watch" : ["pm2.json"],
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"env": {
"TOKEN": "<discord bot token>",
"PREFIX": "!",
"OP_ROLE": "<discord moderator role id>",
"LOG_CHANNEL": "<log channel id, bot must have access>",
"GUILD_ID": "<discord server/guild id>"
}
}
]
}
- (Optional) Start bot with pm2 (
pm2 start pm2.json
). - (Optional) Fork and deploy to heroku (Procfile included)
If you find bugs, let me know, make an issue, and if you know the fix, submit a PR. All for the betterment of all of us!
Probably not many. I built this to be pretty simple and straightforward. I might make the image ones dynamic and pull from Environment vars so you don't have to modify any source to use this.