A open source Discord bot coded in JavaScript with Discord.js.
Services are monitor with either TCP ping, http request or IMCP ping.
Inspired by discord-uptime.
- Make sure you have installed Node.js v10 or higher and Git.
- Clone this repository with
https://github.com/ColdUnwanted/Outage-Bot.git
. - Run
cd Outage-Bot
to move in the folder that Git has just created. - Run
npm install
to download the node modules required. - Rename
config_example.json
toconfig.json
and edit it. - Rename
data_example.json
todata.json
if you want to have a clean data file. - Run the bot with
node bot.js
.
- Make sure you have installed Node.js v10 or higher and Git.
- Clone this repository with
https://github.com/ColdUnwanted/Outage-Bot.git
. - Run
cd Outage-Bot
to move in the folder that Git has just created. - Run
npm install
to download the node modules required. - Rename
config_example.json
toconfig.json
and edit it. - Rename
data_example.json
todata.json
if you want to have a clean data file. - Run the bot with
node bot.js
.
Rename config_example.json
to config.json
and edit the default value
token
- Discord bot tokenprefix
- Discord bot prefixstatus
- Text for bot statusadminId
- List of IDs that can use the monitor commandtimeout
- How many seconds before a ping or HTTP request is timed outalert_channel
- Channel where the up and down notification will be sentmention_role
- Role to mention when the up and down notification is sentupdate_rate
- Seconds to update monitor messages
Servers should be setup similar to the examples already in server.json
[
{
"name": "DuckDuckGo",
"type": "http",
"address": "duckduckgo.com",
"hide_address": false
},
{
"name": "Google DNS",
"type": "ping",
"address": "8.8.8.8",
"hide_address": false
},
{
"name": "Gmail SMTP",
"type": "tcp",
"address": "smtp.gmail.com:465",
"hide_address": false
}
]
Default prefix: >
ping
- Get the bot's ping to discorduptime
- Get the bot's uptimestatus
- Display the status of all serversmonitor
- Display an updating monitor of the servers' status