Skip to content

CometBot is a Discord bot that monitors http/https endpoints for a change in uptime, and alerts you and your discord community of outages.

License

Notifications You must be signed in to change notification settings

Thedude7054/CometBot

Repository files navigation

CometBot

Requirements

  • Docker
  • node.js if planning on developing this image

Installation

Literally pull the repository.

For a guide on installing docker, please refer the official documentation

Configuration

This is run with Docker, using environment variables. All environment variables are required The enviornment variables consist of;

  • CHECK_NAME - What you want the bot to say it's taking the status of
  • PING_URL - The URL you'd like to check the status of. Make sure you include the protocal you intend to use, in the URL
  • BOT_TOKEN - The token of the Discord bot you intend to run
  • DM_USERS - Users to be DMed when the status of the service you're checking changes
  • CHECK_TIME - Time inbetween status checks in seconds

You can find these in the included example.env file

Running

To run this in detached mode, using the environment variables in the .env file:

docker run -d status-bot --env-file .env --name status-bot

Let's break this down, for those that aren't familiar with Docker. The -d flag runs the image in detached mode. --env-file pulls environment variables from the file specified, in this case the file we're pulling from is .env. It is important to note, you can have as many .env files you'd like, and rename them to whatever you'd like for different configurations. name specifies a name for the image we're about to run, to make it easier to control later; This is removes a lot of headache later when running in detached mode.

It is important to note that should you like to run multiple instances of this on the same machine, you shouldn't have any problems doing so.

About

CometBot is a Discord bot that monitors http/https endpoints for a change in uptime, and alerts you and your discord community of outages.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published