This includes all Discord stuff for Champions of Regnum, as of now:
- a bot that displays BZ status changes and next BZs, with countdowns (live @ https://discord.gg/DXDWKnZ2mw)
- a bot that displays bosses respawn time, with countdowns (live @ https://discord.gg/SBzmeycYdT)
But it also includes a fully fledged IRC bot, with the same thing, and the warstatus and war key statistics on top of that.
It's released under the MIT License. A former, simpler version using webhooks can be
found in the legacy
branch of the repo.
While I currently host that stuff, I would recommend, if you are capable to do
so, to self host these bots. They use very little resources and are not
permanent (launched through cron
), making them able to work on tiny VPSes
with 128MB of RAM and 2GB disk space.
Deployment is pretty easy if you're used to Linux, Discord side can be painful.
- Linux VPS or server (should work on windows but...), called VPS later
- Decent understanding of said Linux system
- Python 3
- Others (can vary if you use discord and/or irc, detailed in the fitting READMEs)
You could use git, but I am detailing the good old download method.
- Download the latest zip archive at https://github.com/mascaldotfr/CoRT-dc/archive/refs/heads/main.zip
- Extract it where you want
- Copy
storage.ini.bootstrap
tostorage.ini
and modify thebz_on
variable according to the current BZ situation
You can either run bots on discord or irc, or the two of them simultaneously.
- The configuration for Discord is detailed in that README
- The configuration for IRC is detailed in that README
Once you're done, come back here.
Now let's automate it with cron. Edit your crontab (use a normal user for that):
crontab -e
And add the following lines:
0 * * * * cd /where/is/CoRT-dc/ && python3 bz.py
* * * * * cd /where/is/CoRT-dc/ && python3 bosses.py
For people who activated IRC you'll also need to activate the warstatus:
* * * * * cd /where/is/CoRT-dc && python3 warstatus.py
- Open https://mascaldotfr.github.io/CoRT/bosses.html
- Press F12, the click on the console tab
- You'll get the previous respawn time that you can insert in
storage.ini
andstorage.ini.bootstrap
Note that once you'll get a better picture of CoRT-dc, every modules (bz/bosses/wz) are deactivable for any network, and it should be fairly easy to use CoRT-dc on another social platform.
Events are often one shot, quickly written stuff. You'll need to move them in the main folder for them to work.