From d44b77b316c631d210284a0f71f9b3cb9891b016 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Mon, 26 Dec 2016 10:48:58 -0500 Subject: [PATCH] exclude myself from channel restriction --- bots/tipbot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/tipbot.js b/bots/tipbot.js index f6fd691..69e4ea9 100644 --- a/bots/tipbot.js +++ b/bots/tipbot.js @@ -43,7 +43,7 @@ function respond(bot, data) { var subcommand = words.length >= 2 ? words[1] : 'help'; - var moveToBotSandbox = /*!tipper.is_admin && !tipper.is_owner && */channel !== 'C1TEEBS2Z' && ['help', 'balance', 'deposit', 'withdraw'].indexOf(subcommand) != -1 && !channel.startsWith("D") + var moveToBotSandbox = tipper != 'U0AFBMHCJ' && channel !== 'C1TEEBS2Z' && ['help', 'balance', 'deposit', 'withdraw'].indexOf(subcommand) != -1 && !channel.startsWith("D") if (moveToBotSandbox) { bot.postMessage(channel, 'Please use <#C1TEEBS2Z|bot-sandbox> to talk to bots.', globalSlackParams); return;