mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 06:00:59 -05:00
adjusts for logic
This commit is contained in:
parent
d04104efda
commit
a31485c186
@ -13,9 +13,6 @@ from sopel_modules.SpiceBot_Events.System import bot_events_check, botevents
|
||||
@sopel.module.nickname_commands('(.*)')
|
||||
def bot_command_nick(bot, trigger):
|
||||
|
||||
if trigger.args[1].lower().startswith(bot.nick.lower() + " ?"):
|
||||
return
|
||||
|
||||
while not bot_events_check(bot, [botevents.BOT_LOADED, botevents.BOT_COMMANDSQUERY]):
|
||||
pass
|
||||
|
||||
@ -24,6 +21,9 @@ def bot_command_nick(bot, trigger):
|
||||
if not triggercommand:
|
||||
return
|
||||
|
||||
if triggercommand[0] == "?":
|
||||
return
|
||||
|
||||
if triggercommand in bot.memory['SpiceBot_CommandsQuery']['commands']["nickname"].keys():
|
||||
return
|
||||
triggerargs.insert(0, triggercommand)
|
||||
|
||||
@ -15,9 +15,6 @@ import spicemanip
|
||||
@sopel.module.nickname_commands('(.*)')
|
||||
def query_detection_nick(bot, trigger):
|
||||
|
||||
if not trigger.args[0].lower().startswith(bot.nick.lower() + " ?"):
|
||||
return
|
||||
|
||||
while not bot_events_check(bot, botevents.BOT_COMMANDSQUERY):
|
||||
pass
|
||||
|
||||
@ -28,6 +25,9 @@ def query_detection_nick(bot, trigger):
|
||||
if not triggercommand or not len(triggercommand):
|
||||
return
|
||||
|
||||
if not triggercommand[0] == "?":
|
||||
return
|
||||
|
||||
if not letters_in_string(triggercommand):
|
||||
return
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user