From 8eb60552fbd63859de1b94c77343367d7b518ada Mon Sep 17 00:00:00 2001 From: Douglas Gardner Date: Wed, 6 Mar 2013 14:17:24 +0000 Subject: [PATCH] tidy --- modules/rc/rc.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/modules/rc/rc.js b/modules/rc/rc.js index d25a99d..1b57ed0 100644 --- a/modules/rc/rc.js +++ b/modules/rc/rc.js @@ -1,7 +1,7 @@ /** - * Module Name: Link - * Description: Stores recent channel rcs, with commands to retrieve - * information about rcs. + * Module Name: RC + * Description: Relays UDP packets, intended for + * a feed of RecentChanges on a MediaWiki install. */ var dgram = require('dgram'); @@ -9,17 +9,12 @@ var rc = function(dbot) { var server = dgram.createSocket("udp4"); server.on("message", function(msg, rinfo) { + var message = msg.toString(); console.log(msg.toString()); + // dbot.say(dbot.config.rc.server, dbot.config.rc.channel, message); }); server.bind(dbot.config.rc.port); - - - var commands = { - }; - this.commands = commands; - - this.on = 'PRIVMSG'; }; exports.fetch = function(dbot) {