diff --git a/sopel_modules/SpiceBot_AI/AI.py b/sopel_modules/SpiceBot_AI/AI.py index 19e0772..322fe57 100644 --- a/sopel_modules/SpiceBot_AI/AI.py +++ b/sopel_modules/SpiceBot_AI/AI.py @@ -185,7 +185,8 @@ def bot_command_nick(bot, trigger): elif fulltrigger.lower().startswith("can you see"): target = spicemanip.main(triggerargs, "4+") or None if not target: - target = 'me' + bot.osd(trigger.nick + ", I can see clearly.") + return if target in [trigger.nick, 'me']: bot.osd(trigger.nick + ", I can see you.") else: @@ -200,7 +201,7 @@ def bot_command_nick(bot, trigger): # TODO return - if not inlist(bot, triggercommand, bot.memory['SpiceBot_CommandsQuery']['commands']["nickname"].keys()): + else: closestmatches = similar_list(bot, triggercommand, bot.memory['SpiceBot_CommandsQuery']['commands']["nickname"].keys(), 3, 'reverse')