mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
test
This commit is contained in:
parent
8f0ac26263
commit
c7ea3f7215
@ -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")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user