mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
better handling
This commit is contained in:
parent
e97fbd268a
commit
4adf869b50
@ -58,9 +58,9 @@ def bot_command_rule(bot, trigger):
|
||||
if trigger_command in SpiceBot.commands.dict['commands']["nickname"].keys():
|
||||
return
|
||||
else:
|
||||
command_type = 'module'
|
||||
trigger_args, trigger_command = SpiceBot.prerun.trigger_args(message, 'module')
|
||||
trigger_args.insert(0, trigger_command)
|
||||
command_type = 'other'
|
||||
trigger_args = spicemanip.main(message, 'create')
|
||||
trigger_command = trigger_args[0]
|
||||
fulltrigger = spicemanip.main(trigger_args, 0)
|
||||
|
||||
returnmessage = SpiceBot.botai.on_message(bot, trigger, message)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user