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

View File

@ -70,6 +70,13 @@ def bot_command_rule(bot, trigger):
bot.osd(str(returnmessage))
return
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
if command_type == 'module':
# return # TODO
if trigger_command not in commands_list:
@ -182,13 +189,6 @@ def bot_command_rule(bot, trigger):
# return
# 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')
if len(closestmatches):
closestmatches = spicemanip.main(closestmatches, "andlist")