diff --git a/sopel_modules/SpiceBot/Prerun.py b/sopel_modules/SpiceBot/Prerun.py index cde81b3..312a0a7 100644 --- a/sopel_modules/SpiceBot/Prerun.py +++ b/sopel_modules/SpiceBot/Prerun.py @@ -34,7 +34,8 @@ def prerun(t_command_type='module'): return bot.say(str(trigger_command_type)) - for comtype in [trigger_command_type, t_command_type]: + for comtypecheck in [trigger_command_type, t_command_type]: + comtype = eval(comtypecheck) if comtype not in list(botcommands.dict["commands"].keys()): bot.say(str(comtype) + " not valid comtype")