Difference between revisions of "Limnoria"

From sshcWiki
Jump to navigation Jump to search
m (Formatting)
(Clarified some things, formatting.)
Line 11: Line 11:
 
  $wgRC2UDPPrefix = "#sshc ";
 
  $wgRC2UDPPrefix = "#sshc ";
  
Supybot has a plugin that will relay messages sent to an arbitrary UDP port to a channel.  Add [https://git.fedorahosted.org/git/supybot-notify.git this plugin] to your Supybot installation, and configure it to listen to localhost on port 5050:
+
Supybot has a plugin that will relay messages sent to an arbitrary TCP port to a channel.  Add [https://git.fedorahosted.org/git/supybot-notify.git this plugin] to your Supybot installation, and configure it to listen to localhost on port 5050:
 
  load Notify
 
  load Notify
 
  config supybot.plugins.Notify.server_address 127.0.0.1
 
  config supybot.plugins.Notify.server_address 127.0.0.1
Line 21: Line 21:
  
 
And then you'll see notifications like this in your the IRC channel:
 
And then you'll see notifications like this in your the IRC channel:
 +
<nowiki>
 +
<oscarbot> [[Limnoria]] M http://wiki.sshchicago.org/index.php?diff=330&oldid=329&rcid=340 * Cswingler * (+1) Formatting</nowiki>
 
   
 
   
 +
=== Security Caveats ===
 +
Anyone who is capable of talking to the loopback interface on the server can push arbitrary messages to the IRC channel. Granted, those should be people you trust anyhow. :)
 +
 
= See Also =
 
= See Also =
 
[https://github.com/ProgVal/Limnoria Limnoria Github Project]
 
[https://github.com/ProgVal/Limnoria Limnoria Github Project]
  
 
[http://sourceforge.net/projects/supybot/ Supybot Sourceforge Page]
 
[http://sourceforge.net/projects/supybot/ Supybot Sourceforge Page]

Revision as of 12:12, 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 TCP 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:

 <oscarbot> [[Limnoria]] M http://wiki.sshchicago.org/index.php?diff=330&oldid=329&rcid=340 * Cswingler * (+1) Formatting

Security Caveats

Anyone who is capable of talking to the loopback interface on the server can push arbitrary messages to the IRC channel. Granted, those should be people you trust anyhow. :)

See Also

Limnoria Github Project

Supybot Sourceforge Page