From 7cf82cb7f76d32a9923455332b207e084785b30e Mon Sep 17 00:00:00 2001 From: Flummi Date: Tue, 23 Aug 2016 19:25:50 +0000 Subject: [PATCH] test > match --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);