This commit is contained in:
deathbybandaid 2019-07-06 08:23:16 -04:00
parent 8b8c7d0b0f
commit 30e02bf42a

View File

@ -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