fixed condition
This commit is contained in:
parent
68230b25e6
commit
3817ec8e33
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ function respond(bot, data) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!tipper.is_admin || !tipper.is_owner || channel.name !== "bot-sandbox" ){
|
if ((!tipper.is_admin || !tipper.is_owner) && channel.name !== "bot-sandbox" ){
|
||||||
bot.postMessage(channel, 'Please help keep the channel clean: use #bot-sandbox', globalSlackParams);
|
bot.postMessage(channel, 'Please help keep the channel clean: use #bot-sandbox', globalSlackParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue