diff --git a/sopel_modules/SpiceBot_Core_Commands/Commands.py b/sopel_modules/SpiceBot_Core_Commands/Commands.py index 33d0b34..994888e 100644 --- a/sopel_modules/SpiceBot_Core_Commands/Commands.py +++ b/sopel_modules/SpiceBot_Core_Commands/Commands.py @@ -37,9 +37,9 @@ def nickname_comand_commands(bot, trigger): return elif commandused == 'total': - bot.osd("I have " + str(len(commands_list.keys())) + " commands available.") + bot.osd("I have " + str(len(commands_list)) + " commands available.") return elif commandused == 'random': - bot.osd(["Here's a random command for you:", + spicemanip.main(commands_list.keys(), 'random')]) + bot.osd(["Here's a random command for you:", spicemanip.main(commands_list, 'random')]) return