From d3b4248b10e435ce4870e240b2aa1e398b58ebf2 Mon Sep 17 00:00:00 2001 From: Pouria Ezzati Date: Sun, 8 Oct 2017 11:40:42 +0330 Subject: [PATCH] @admins works with words after --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3302546..96b4bcf 100644 --- a/index.js +++ b/index.js @@ -94,7 +94,7 @@ bot.command('getwarns', getWarnsHandler); bot.command('ban', banHandler); bot.command('unban', unbanHandler); bot.command('report', reportHandler); -bot.hears(/^@admins?$/i, reportHandler); +bot.hears(/^@admins?\s?/i, reportHandler); bot.command('staff', staffHandler); bot.command('link', linkHandler); bot.command('groups', groupsHandler);