mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 14:39:54 -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))
|
bot.osd(str(returnmessage))
|
||||||
return
|
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':
|
if command_type == 'module':
|
||||||
# return # TODO
|
# return # TODO
|
||||||
if trigger_command not in commands_list:
|
if trigger_command not in commands_list:
|
||||||
@ -182,13 +189,6 @@ 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")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user