Skip to content

Discord and IRC "bots" displaying current CoR-related statuses

License

Notifications You must be signed in to change notification settings

mascaldotfr/CoRT-dc

Repository files navigation

CoRT-dc

This includes all Discord stuff for Champions of Regnum, as of now:

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.

Deployment

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.

Pre-requisites

  • 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)

VPS setup

You could use git, but I am detailing the good old download method.

Discord and/or IRC deployment

You can either run bots on discord or irc, or the two of them simultaneously.

Once you're done, come back here.

Automate

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

Update respawns

Deactivated modules

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

Events are often one shot, quickly written stuff. You'll need to move them in the main folder for them to work.

About

Discord and IRC "bots" displaying current CoR-related statuses

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages