Skip to content

mojira/mojira-dbobs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

👀 Mojira Discord Bot Observer

Resources

License

Stars

0 stars

Watchers

3 watching

Forks

Contributors