mirror of
https://github.com/LBRYFoundation/lbry-tipbot.git
synced 2025-08-23 16:57:24 +00:00
workaround for missing api
This commit is contained in:
parent
1d0252ab02
commit
c4283fd9d4
1 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,9 @@ function respond(bot, data) {
|
||||||
|
|
||||||
var subcommand = words.length >= 2 ? words[1] : 'help';
|
var subcommand = words.length >= 2 ? words[1] : 'help';
|
||||||
var isAllowedTip = false;
|
var isAllowedTip = false;
|
||||||
if ((!tipper.is_admin || !tipper.is_owner) && channel.name !== 'bot-sandbox' ){
|
|
||||||
|
//uncomment the next block when the new lower-level API is added (is_admin and is_owner must be included in the data dump)
|
||||||
|
if (/*(!tipper.is_admin || !tipper.is_owner) && */(channel.name !== 'C1TEEBS2Z' && !channel.name.startsWith("D") )){
|
||||||
//to check if the command is a tip (hence allowed to pass through) we need to check against all the other commands)
|
//to check if the command is a tip (hence allowed to pass through) we need to check against all the other commands)
|
||||||
if (subcommand === 'help' || subcommand === 'balance' || subcommand === 'deposit' || subcommand === 'withdraw'){
|
if (subcommand === 'help' || subcommand === 'balance' || subcommand === 'deposit' || subcommand === 'withdraw'){
|
||||||
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…
Add table
Reference in a new issue