staty-bot
v0.1.9
Published
A discord bot that allows you to monitor the status of your APIs regularly and automate.
Downloads
4
Readme
staty
Staty is a discord bot that allows you to monitor the status of your APIs regularly and automatically.
Configuration files
For configuration of Staty you must have these files : data/secret.json, data/config.json.
data/secret.json
To create your discord app : Discord Developers
{
"BOT_TOKEN": YOUR_DISCORD_BOT_TOKEN_ID,
"BOT_OWNER_ID": YOUR_DISCORD_ID,
"GUILD_ID": YOUR_DISCORD_SERVER_ID,
"BOT_ID": YOUR_BOT_USER_ID,
"MONGODB_URL": URL_OF_YOUR_MONGODB_SERVER,
}
data/config.json
For ROLE_ID_STATE_PING
, must be provide the role id for your server role. This role has ping when an api has down or re-up.
For all channels, you must provide the exact channel name.
⚠️
Discord have rate limit of two actions in 10 minutes for bots on update name or description on channel and threads. Your wait time must be >= 300000
ms ! Now Staty check this value since his version 0.1.5
.
{
"options": {
"wait": WAITING_TIME_IN_MS,
"color": HEXADECIMAL_CODE,
"name": "Staty",
}
}