3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-30 16:09:27 +01:00
This commit is contained in:
reality 2015-03-24 19:30:46 +00:00
parent ac2f7bbccd
commit 902cbdec3c

View File

@ -112,9 +112,7 @@ var words = function(dbot) {
this.commands['~jimble'].regex = [/^jimble (.+)$/, 2]; this.commands['~jimble'].regex = [/^jimble (.+)$/, 2];
this.listener = function(event) { this.listener = function(event) {
var matchOne = event.message.match(new RegExp(dbot.config.name + var matchOne = event.message.match(new RegExp(dbot.config.name + ': should (\\w+) (.+) or (.*)\\?', 'i'));
': should (\\w+) (.+) or (.*)\\?', 'i'));
event.reply(matchOne);
if(matchOne) { if(matchOne) {
var pre = match[1]; var pre = match[1];
if(pre == 'i' || pre == 'I') { if(pre == 'i' || pre == 'I') {