mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
fix ai
This commit is contained in:
parent
bbd36f9513
commit
a4f07f4ebe
@ -53,7 +53,7 @@ def bot_command_rule_ai(bot, trigger):
|
||||
|
||||
if str(message).lower().startswith(str(bot.nick).lower()):
|
||||
command_type = 'nickname'
|
||||
trigger_args, trigger_command = SpiceBot.make_trigger_args(message, 'nickname')
|
||||
trigger_args, trigger_command, trigger_prefix = SpiceBot.make_trigger_args(message, 'nickname')
|
||||
trigger_args.insert(0, trigger_command)
|
||||
fulltrigger = bot.nick + " " + spicemanip.main(trigger_args, 0)
|
||||
if str(trigger_command).startswith(bot.config.SpiceBot_Commands.query_prefix):
|
||||
@ -67,7 +67,7 @@ def bot_command_rule_ai(bot, trigger):
|
||||
return
|
||||
elif str(message).startswith(tuple(bot.config.core.prefix_list)):
|
||||
command_type = 'module'
|
||||
trigger_args, trigger_command = SpiceBot.make_trigger_args(message, 'module')
|
||||
trigger_args, trigger_command, trigger_prefix = SpiceBot.make_trigger_args(message, 'module')
|
||||
trigger_args.insert(0, trigger_command)
|
||||
fulltrigger = spicemanip.main(trigger_args, 0)
|
||||
# patch for people typing "...", maybe other stuff, but this verifies that there is still a command here
|
||||
|
||||
Loading…
Reference in New Issue
Block a user