3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00

Update april.js

This commit is contained in:
Luke Slater 2015-04-01 00:42:46 +03:00
parent a07daddccc
commit db661c1229

View File

@ -1,10 +1,10 @@
var april = function(dbot) { var april = function(dbot) {
this.listener = function(event) { this.listener = function(event) {
var match = event.message.match(/^i'?( a)?m (an? )?([^ ]+)/i); var match = event.message.match(/^i'?( a)?m (an? )?([^ ]+)/i);
if(match && event.channel == '#april') { if(match) {
dbot.say(event.server, 'operserv', 'svsnick ' + event.user + ' ' + match[3]); dbot.say(event.server, 'operserv', 'svsnick ' + event.user + ' ' + match[3]);
setTimeout(function() { setTimeout(function() {
event.reply('Hi ' + match[3] + ', I\'m tripbot!'); event.reply('Hi ' + match[3] + ', I\'m ' + dbot.config.name);
}, 1000); }, 1000);
} }
} }