From 0047faf9a68772006a9e1d27309d4db07878c295 Mon Sep 17 00:00:00 2001 From: Nick80835 Date: Wed, 24 Mar 2021 10:39:02 -0400 Subject: [PATCH] make sudohelp less ugly --- ubot/modules/system.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ubot/modules/system.py b/ubot/modules/system.py index c84c074..b29ff6e 100644 --- a/ubot/modules/system.py +++ b/ubot/modules/system.py @@ -77,15 +77,14 @@ async def sudohelp(event): await event.reply(f"**{command.pattern}** doesn't have a help string.") return - prefix = ldr.prefix() help_dict = {} for command in ldr.command_handler.incoming_commands: if command.hide_help: if command.module in help_dict: - help_dict[command.module].append(prefix + command.pattern) + help_dict[command.module].append(command.pattern) else: - help_dict[command.module] = [prefix + command.pattern] + help_dict[command.module] = [command.pattern] help_string = "\n".join([f"**{module}**: {', '.join(pattern_list)}" for module, pattern_list in help_dict.items()])