Skip to content

StahlFerro/StatusBot

Repository files navigation

StatusBot

StatusBot is a simple .NET Core discord bot that PM's a user if another bot goes offline. It comes with a very simple per-server configuration that determines what bot will be tracked for its status, and who will be PM'ed when the bot goes offline.

So far this bot is only used for testing and to assist on special cases only. It's not intended for public use as this bot is still experimental. But if you're interested in testing it, either visit it's development discord server and message me, or PM me on discord for further info.

Warning StatusBot 3.0.1 (v3) is now deprecated and replaced with 4.0.0 (master) which introduces breaking changes mainly on the database models.

Database

For anyone trying to run their own local instance or self-hosting StatusBot, it requires an SQLite database which should be named StatusBot.db in the Database folder. Although SQLite is the best choice for StatusBot, you are not restricted to other database providers but they might restrict you from compatible hosting platforms. If you want to change do not forget to:

  1. Add the respective database provider of your choice. List of providers.
  2. Change the statement inside the OnConfiguring method on the StatusBotContext.cs statement to your chosen provider.

Hosting on Windows and Linux

The bot is run by dotnet run and of course dotnet restore and dotnet build beforehand.

Hosting on Raspberry Pi (new!)

Publishing StatusBot with dotnet publish is pretty straightforward:

  1. Use the following command to publish the app for your Pi: dotnet publish -c Release -r linux-arm
  2. Copy the entire publish folder inside the generated linux-arm folder into your Pi
  3. Execute chmod 755 StatusBot and then run it! (./StatusBot) For more reference regarding hosting dotnetcore applications on a Pi: https://github.com/dotnet/core/blob/master/samples/RaspberryPiInstructions.md

Further questions regarding self-hosting StatusBot can be asked on it's development server mentioned above.

About

Discord Bot that notifies users of other bots going offline

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published