Difference between revisions of "Limnoria"

From sshcWiki
Jump to navigation Jump to search
(Created a page about)
 
m (Formatting)
Line 7: Line 7:
  
 
Mediawiki has a built in feature that will announce recent changes to an arbitary UDP port.  To turn that feature on, add this to LocalSettings.php:
 
Mediawiki has a built in feature that will announce recent changes to an arbitary UDP port.  To turn that feature on, add this to LocalSettings.php:
  $wgRC2UDPAddress = '127.0.0.1';
+
  $wgRC2UDPAddress = '127.0.0.1';  
 
  $wgRC2UDPPort = '51666';
 
  $wgRC2UDPPort = '51666';
 
  $wgRC2UDPPrefix = "#sshc ";
 
  $wgRC2UDPPrefix = "#sshc ";

Revision as of 12:08, 26 January 2014

Limnoria is the IRC bot we use in #sshc for normal IRC bot duties. It is a fork of Supybot.

Tips and Tricks

Announcing changes in the wiki

There's an old Mediawiki Extension to handle this, but it broke with Mediawiki 1.22. Using Mediawiki's builtin features should make this a bit more robust:

Mediawiki has a built in feature that will announce recent changes to an arbitary UDP port. To turn that feature on, add this to LocalSettings.php:

$wgRC2UDPAddress = '127.0.0.1'; 
$wgRC2UDPPort = '51666';
$wgRC2UDPPrefix = "#sshc ";

Supybot has a plugin that will relay messages sent to an arbitrary UDP port to a channel. Add this plugin to your Supybot installation, and configure it to listen to localhost on port 5050:

load Notify
config supybot.plugins.Notify.server_address 127.0.0.1
config supybot.plugins.Notify.server_port 5050

These then almost work together; if it wasn't for that pesky UDP->TCP translation. You can use netcat to make a quick shim:

nc  -k -u -l  51666 | while read line; do echo $line | nc 127.0.0.1 5050; done

And then you'll see notifications like this in your the IRC channel:

See Also

Limnoria Github Project

Supybot Sourceforge Page