This commit is contained in:
deathbybandaid 2019-05-09 14:42:52 -04:00
parent 48ec456aca
commit 2997c2ef94

View File

@ -185,7 +185,8 @@ def bot_command_nick(bot, trigger):
elif fulltrigger.lower().startswith("can you see"): elif fulltrigger.lower().startswith("can you see"):
target = spicemanip.main(triggerargs, "4+") or None target = spicemanip.main(triggerargs, "4+") or None
if not target: if not target:
target = 'me' bot.osd(trigger.nick + ", I can see clearly.")
return
if target in [trigger.nick, 'me']: if target in [trigger.nick, 'me']:
bot.osd(trigger.nick + ", I can see you.") bot.osd(trigger.nick + ", I can see you.")
else: else:
@ -200,7 +201,7 @@ def bot_command_nick(bot, trigger):
# TODO # TODO
return 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') closestmatches = similar_list(bot, triggercommand, bot.memory['SpiceBot_CommandsQuery']['commands']["nickname"].keys(), 3, 'reverse')