set a small timeout

This commit is contained in:
reality 2015-03-31 18:32:18 +00:00
parent 33923aee8b
commit 417cc7b5f8

View File

@ -3,7 +3,9 @@ var april = function(dbot) {
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!');
setTimeout(function() {
event.reply('Hi ' + match[1] + ', I\'m tripbot!');
}, 2000);
}
}
this.on = 'PRIVMSG';