From 6980076a75f7c102ecd9993dc9406235284d3d36 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 7 Jun 2019 11:16:41 -0400 Subject: [PATCH] keys --- sopel_modules/SpiceBot_Core_Commands/Commands.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sopel_modules/SpiceBot_Core_Commands/Commands.py b/sopel_modules/SpiceBot_Core_Commands/Commands.py index c851908..33d0b34 100644 --- a/sopel_modules/SpiceBot_Core_Commands/Commands.py +++ b/sopel_modules/SpiceBot_Core_Commands/Commands.py @@ -21,7 +21,6 @@ def nickname_comand_commands(bot, trigger): commandused = 'list' else: commandused = spicemanip.main(trigger.sb['args'], 1).lower() - bot.say(str(commandused)) commands_list = [] for commandstype in SpiceBot.commands.dict['commands'].keys(): @@ -38,9 +37,9 @@ def nickname_comand_commands(bot, trigger): return elif commandused == 'total': - bot.osd("I have " + str(len(commands_list)) + " commands available.") + bot.osd("I have " + str(len(commands_list.keys())) + " commands available.") return elif commandused == 'random': - bot.osd(["Here's a random command for you:", + spicemanip.main(commands_list, 'random')]) + bot.osd(["Here's a random command for you:", + spicemanip.main(commands_list.keys(), 'random')]) return