diff --git a/src/main.js b/src/main.js index 2f3f5dc..d8cb950 100644 --- a/src/main.js +++ b/src/main.js @@ -42,7 +42,7 @@ bot.on('motd', (e) => { bot.on('message', (e) => { trigger.trigger.forEach((entry,i,a) => { - if(e.message.match(entry.call)) { + if(entry.call.test(e.message)) { lib.getUserlevel(e, (cb) => { if(cb.level >= entry.level) entry.func(e);