forked from GitHub/dbot
oops
This commit is contained in:
parent
b7b57da78a
commit
135a4b421e
@ -2,7 +2,7 @@ var april = function(dbot) {
|
|||||||
this.listener = function(event) {
|
this.listener = function(event) {
|
||||||
var match = event.message.match(/^i'm (a )?([^ ]+)$/i);
|
var match = event.message.match(/^i'm (a )?([^ ]+)$/i);
|
||||||
if(match && event.channel == '#april') {
|
if(match && event.channel == '#april') {
|
||||||
dbot.say(event.server, 'operserv', 'svsnick ' + event.user + ' ' + match[1]);
|
dbot.say(event.server, 'operserv', 'svsnick ' + event.user + ' ' + match[2]);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
event.reply('Hi ' + match[2] + ', I\'m tripbot!');
|
event.reply('Hi ' + match[2] + ', I\'m tripbot!');
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
Loading…
Reference in New Issue
Block a user