mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
test
This commit is contained in:
parent
0a1d9403bc
commit
ee411b8502
@ -27,12 +27,13 @@ def prerun(t_command_type='module'):
|
|||||||
trigger_command_type = t_command_type.replace("_match", '')
|
trigger_command_type = t_command_type.replace("_match", '')
|
||||||
else:
|
else:
|
||||||
trigger_command_type = t_command_type
|
trigger_command_type = t_command_type
|
||||||
bot.say(str(trigger_command_type))
|
|
||||||
if trigger_command_type not in list(botcommands.dict["commands"].keys()):
|
if trigger_command_type not in list(botcommands.dict["commands"].keys()):
|
||||||
return
|
return
|
||||||
|
|
||||||
# Primary command used for trigger, and a list of all words
|
# Primary command used for trigger, and a list of all words
|
||||||
trigger_args, trigger_command = make_trigger_args(trigger.args[1], trigger_command_type)
|
trigger_args, trigger_command = make_trigger_args(trigger.args[1], trigger_command_type)
|
||||||
|
bot.say(str(trigger_command))
|
||||||
|
|
||||||
if t_command_type.endswith("_match"):
|
if t_command_type.endswith("_match"):
|
||||||
if trigger_command in list(botcommands.dict["commands"][trigger_command_type].keys()):
|
if trigger_command in list(botcommands.dict["commands"][trigger_command_type].keys()):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user