From f58d80a9c6e4dbb8696eca14c5dd71f86a0164fb Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 12 Feb 2022 15:35:02 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py b/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py index f992ac5..f511d66 100644 --- a/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py +++ b/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py @@ -28,7 +28,13 @@ def sb_test_command_groups(bot, trigger): for command in commands.values() ) - bot.say(str(commands)) + realcommands = dict( + (name, (doc.splitlines(), [u['text'] for u in usages])) + for command, doc, usages in commands + for name in ((command.name,) + command.aliases) + ) + + bot.say(str(realcommands)) # sb.osd(msgs, trigger.sender)