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.
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:
- Add the respective database provider of your choice. List of providers.
- Change the statement inside the OnConfiguring method on the StatusBotContext.cs statement to your chosen provider.
The bot is run by dotnet run
and of course dotnet restore
and dotnet build
beforehand.
Publishing StatusBot with dotnet publish is pretty straightforward:
- Use the following command to publish the app for your Pi:
dotnet publish -c Release -r linux-arm
- Copy the entire
publish
folder inside the generatedlinux-arm
folder into your Pi - 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.