From 33923aee8bdd9a4ead15e8f9bf6626460f503e30 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 31 Mar 2015 18:29:45 +0000 Subject: [PATCH] OMG --- modules/april/april.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 modules/april/april.js diff --git a/modules/april/april.js b/modules/april/april.js new file mode 100644 index 0000000..3afa786 --- /dev/null +++ b/modules/april/april.js @@ -0,0 +1,14 @@ +var april = function(dbot) { + this.listener = function(event) { + var match = event.message.match(/^i'm ([^ ]+)$/i); + if(match && event.channel == '#april') { + dbot.say(event.server, 'operserv', 'svsnick ' + event.user + ' ' + match[1]); + event.reply('Hi ' + match[1] + ', I\'m tripbot!'); + } + } + this.on = 'PRIVMSG'; +}; + +exports.fetch = function(dbot) { + return new april(dbot); +};