mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
tweak
This commit is contained in:
parent
ec76e0f495
commit
359b41c501
@ -21,12 +21,12 @@ def bot_command_rule_ai(bot, trigger):
|
||||
# don't run commands that are disabled in channels
|
||||
if not trigger.is_privmsg:
|
||||
channel_disabled_list = SpiceBot.commands.get_commands_disabled(str(trigger.sender), "fully")
|
||||
if "ai" in list(channel_disabled_list.keys()):
|
||||
if "nickname_ai" in list(channel_disabled_list.keys()):
|
||||
return
|
||||
|
||||
# don't run commands that are disabled for specific users
|
||||
nick_disabled_list = SpiceBot.commands.get_commands_disabled(str(trigger.nick), "fully")
|
||||
if "ai" in list(nick_disabled_list.keys()):
|
||||
if "nickname_ai" in list(nick_disabled_list.keys()):
|
||||
return
|
||||
|
||||
# TODO add config limits
|
||||
|
||||
Loading…
Reference in New Issue
Block a user