mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
idk
This commit is contained in:
parent
ac2f7bbccd
commit
902cbdec3c
@ -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') {
|
||||||
|
Loading…
Reference in New Issue
Block a user