diff --git a/sopel_modules/SpiceBot_Core_Commands/DictComs.py b/sopel_modules/SpiceBot_Core_Commands/DictComs.py index 556ee10..8449f1c 100644 --- a/sopel_modules/SpiceBot_Core_Commands/DictComs.py +++ b/sopel_modules/SpiceBot_Core_Commands/DictComs.py @@ -33,12 +33,9 @@ def bot_dictcom_process(bot, trigger, botcom): # use the default key, unless otherwise specified botcom.dict["responsekey"] = "?default" - for command in list(botcom.dict["dict"].keys()): - bot.osd(str(command)) - # handling for special cases posscom = spicemanip(botcom.dict['args'], 1) - if posscom.lower() in [command.lower() for command in list(botcom.dict["dict"].keys())]: + if posscom.lower() in [str(command).lower() for command in list(botcom.dict["dict"].keys())]: for command in botcom.dict["dict"].keys(): if command.lower() == posscom.lower(): posscom = command