adjusts for logic

This commit is contained in:
deathbybandaid 2019-05-14 22:09:49 -04:00
parent d04104efda
commit a31485c186
2 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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