From a91fd063bbb6d12ab3d0737c67ee2d9ab2a11efb Mon Sep 17 00:00:00 2001 From: Kowlin Date: Fri, 11 Mar 2016 01:42:04 +0100 Subject: [PATCH] Updated customcommands formating. --- cogs/customcom.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cogs/customcom.py b/cogs/customcom.py index ea32b3d68..6dbd58517 100644 --- a/cogs/customcom.py +++ b/cogs/customcom.py @@ -95,10 +95,11 @@ class CustomCommands: if server.id in self.c_commands: cmdlist = self.c_commands[server.id] if cmdlist: - msg = "Custom commands: " - for cmd in cmdlist.keys(): - msg += ctx.prefix + cmd + " " - await self.bot.whisper(msg) + msg = "```Custom commands:\n" + for cmd in sorted([cmd for cmd in cmdlist.keys()]): + msg += " {}\n".format(cmd) + fmsg = msg + "```" + await self.bot.whisper(fmsg) else: await self.bot.say("There are no custom commands in this server. Use addcom [command] [text]") else: