This commit is contained in:
deathbybandaid 2019-06-11 11:41:52 -04:00
parent cc09601002
commit 8f0ac26263

View File

@ -68,7 +68,7 @@ def bot_command_rule(bot, trigger):
returnmessage = SpiceBot.botai.on_message(bot, trigger, message) returnmessage = SpiceBot.botai.on_message(bot, trigger, message)
if returnmessage: if returnmessage:
bot.osd(str(returnmessage)) bot.osd(str(returnmessage))
else: return
if command_type == 'module': if command_type == 'module':
# return # TODO # return # TODO
@ -182,6 +182,13 @@ def bot_command_rule(bot, trigger):
# return # return
# TODO # TODO
if command_type == 'nickname':
try_trigger = spicemanip.main(trigger_args, "2+", 'list')
returnmessage = SpiceBot.botai.on_message(bot, trigger, try_trigger)
if returnmessage:
bot.osd(str(returnmessage))
return
closestmatches = SpiceBot.similar_list(trigger_command, list(SpiceBot.commands.dict['commands']["nickname"].keys()), 3, 'reverse') closestmatches = SpiceBot.similar_list(trigger_command, list(SpiceBot.commands.dict['commands']["nickname"].keys()), 3, 'reverse')
if len(closestmatches): if len(closestmatches):
closestmatches = spicemanip.main(closestmatches, "andlist") closestmatches = spicemanip.main(closestmatches, "andlist")