Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.3 KB

File metadata and controls

45 lines (32 loc) · 1.3 KB

mojira-dbobs


mojira-dbobs

Mojira Discord Bot Observer

A simple Discord bot for observing and restarting MojiraBot.

About

This bot has two functions:

  • It adds the slash command /mojirabot which allows helpers and moderators to stop and restart MojiraBot directly via Discord.
  • It checks whether MojiraBot is online in regular intervals, and if it is not, it restarts it automatically. This behaviour can be toggled with the /autorestart Discord command.

Usage

This bot is written in Rust using the Serenity Discord API library.

For development, use the Rust build tool cargo.

  • Run for development: cargo run
  • Build for production: cargo build --release

You need to create the file config.json containing the Discord bot secrets:

{
    "token": "<your bot's discord token here>",
    "app_id": "<your bot's app id here>"
}

Deployment

Everything for the bot to run via CI is included in the dbobs.sh script.