From 841c974dba10d4bb93201e7584a105c44c4185bd Mon Sep 17 00:00:00 2001 From: MSFTserver Date: Fri, 27 Oct 2017 13:56:11 -0700 Subject: [PATCH] Update helpers.js --- bot/helpers.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bot/helpers.js b/bot/helpers.js index e631e62..a3aba00 100644 --- a/bot/helpers.js +++ b/bot/helpers.js @@ -8,4 +8,12 @@ if(message.member.roles.some(r=>permRanks.perms.includes(r.name)) ) { } else { return false; } -} \ No newline at end of file +} + +exports.hasSpeechChannels = function(msg){ +if(msg.channel.id.some(r=>speechChannels.channelsIDs.includes(r.id)) ) { + return true; +} else { + return false; +} +}