Merge pull request #85 from Kowlin/develop

Updated customcommands formating.
This commit is contained in:
Twentysix 2016-03-11 19:33:46 +01:00
commit 96a3b95d67

View File

@ -95,10 +95,11 @@ class CustomCommands:
if server.id in self.c_commands: if server.id in self.c_commands:
cmdlist = self.c_commands[server.id] cmdlist = self.c_commands[server.id]
if cmdlist: if cmdlist:
msg = "Custom commands: " msg = "```Custom commands:\n"
for cmd in cmdlist.keys(): for cmd in sorted([cmd for cmd in cmdlist.keys()]):
msg += ctx.prefix + cmd + " " msg += " {}\n".format(cmd)
await self.bot.whisper(msg) fmsg = msg + "```"
await self.bot.whisper(fmsg)
else: else:
await self.bot.say("There are no custom commands in this server. Use addcom [command] [text]") await self.bot.say("There are no custom commands in this server. Use addcom [command] [text]")
else: else: