This commit is contained in:
reality 2015-03-31 18:29:45 +00:00
parent febddfcac7
commit 33923aee8b

14
modules/april/april.js Normal file
View File

@ -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);
};