Xonotic Forums
Another RCON IRC bot - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Server Administration (https://forums.xonotic.org/forumdisplay.php?fid=16)
+--- Thread: Another RCON IRC bot (/showthread.php?tid=4827)



Another RCON IRC bot - Melanosuchus - 03-22-2014

I've written a new IRC bot which supports Rcon connections to Xonotic servers.
The bot itself has been something I have been coding for a few months but the rcon support is quite new so there may be bugs or missing features.

Sources: https://github.com/mbasaglia/Simple_IRC_Bot/

Most feature can be enabled, disabled or tweaked to fit specific needs.

General Features:
  • Support different behaviour on different channels
  • Advanced user rights management
  • Miscellaneous "fun" stuff
  • Storing and delivering messages to offline users
  • Integration with Challonge for tournament management and map picking
  • Integration with Rcon
  • Show help about available commands

Rcon Features:
  • Chat message from/to IRC
  • Executing specific commands
  • Executing arbitrary commands
  • Calling/Stopping votes
  • Show list of connected users
  • Show server status (users, ping, current gametype, map)
  • Find installed maps matching a regex
  • Managing bans
  • Allow players to send a message to server admins
  • Show server errors
  • Notify when a server goes offline and comes back online
  • Show players joins/parts (customizable strings to select which info is shown)
  • Show a nicely formatted score table on end match
  • Show gametype and map name when a match starts
  • Viewing vote calls/results
  • Show player nick changes

If the server runs the ESK mod pack IRC JOIN/PART/QUIT/KICK/NICK can be shown in-game.

Currently only support for rcon_secure 0 is available and I've only implemented things I need so far so rcon2irc.pl may have more features.

Setting it up for multiple server on either different channels or in a single channel is pretty simple.

We are using it for the EAC servers on #eac.xonotic and for cup management in #eac.cup

The bot is written in PHP with an Object-Oriented design, while actual documentation is scarce, most classes and methods are documented in code.


RE: Another RCON IRC bot - Mr. Bougo - 03-22-2014

Neato, and you licensed it under AGPL too!

Do you have any interest in contributing this to the project? I'm sure Samual will have no interest with it because he wants to have such features be part of the engine, but maybe talk to other devs.

Secure rcon would be a huge plus. Consider implementing that, it really shouldn't be too hard.


RE: Another RCON IRC bot - Melanosuchus - 03-22-2014

(03-22-2014, 01:09 PM)Mr. Bougo Wrote: Do you have any interest in contributing this to the project? I'm sure Samual will have no interest with it because he wants to have such features be part of the engine, but maybe talk to other devs.
Sure, is IRC the best medium to contact them?
Even if basic IRC integration becomes built-in it may still be interesting to experiment some more advanced stuff with this bot, like integrating the tournament manager and rcon to have fully automated cups.

(03-22-2014, 01:09 PM)Mr. Bougo Wrote: Secure rcon would be a huge plus. Consider implementing that, it really shouldn't be too hard.
I have already started experimenting with the secure 1 protocol, but I preferred to give higher priority to the actual bot stuff to see if it'd work nicely. Once I have enough time I'll make sure to finish this.


RE: Another RCON IRC bot - Mr. Bougo - 03-22-2014

I guess the #xonotic channel on freenode would be the best way. Talk to divVerent or merlijn. I know div is not too familiar with PHP but he might still find it interesting.


RE: Another RCON IRC bot - Melanosuchus - 03-23-2014

I've implemented rcon_secure, rcon_secure 1 works fine but rcon_secure 2 does not: it looks right and the server doesn't give the "denied rcon access" message yet it does nothing

Update: both secure protocols work now.


RE: Another RCON IRC bot - Melanosuchus - 04-27-2014

A small update:

There were some bugs in the example configuration files but they've been fixed.

The bot has been adopted by a few other admins, now it runs for all the servers by EAC, Clanexe and the ProStylers.