mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
test
This commit is contained in:
parent
4a15bffd01
commit
a546a739b3
@ -28,21 +28,20 @@ def prerun(t_command_type='module'):
|
|||||||
# 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_type))
|
|
||||||
trigger_command_type = botcommands.find_command_type(trigger_command)
|
trigger_command_type = botcommands.find_command_type(trigger_command)
|
||||||
if not trigger_command_type:
|
if not trigger_command_type:
|
||||||
return
|
return
|
||||||
bot.say(str(trigger_command_type))
|
|
||||||
|
|
||||||
for comtypecheck in ["trigger_command_type", "t_command_type"]:
|
if trigger_command_type not in list(botcommands.dict["commands"].keys()):
|
||||||
comtype = eval(comtypecheck)
|
|
||||||
|
|
||||||
if comtype not in list(botcommands.dict["commands"].keys()):
|
|
||||||
bot.say(str(comtype) + " not valid comtype")
|
|
||||||
return
|
return
|
||||||
|
|
||||||
if trigger_command not in list(botcommands.dict["commands"][comtype].keys()):
|
if trigger_command not in list(botcommands.dict["commands"][trigger_command_type].keys()):
|
||||||
bot.say(str(trigger_command) + " not in " + str(comtype))
|
return
|
||||||
|
|
||||||
|
if trigger_command_type != t_command_type:
|
||||||
|
if t_command_type not in list(botcommands.dict["commands"].keys()):
|
||||||
|
return
|
||||||
|
if trigger_command in list(botcommands.dict["commands"][t_command_type].keys()):
|
||||||
return
|
return
|
||||||
|
|
||||||
# Argsdict Defaults
|
# Argsdict Defaults
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user