mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
Updated customcommands formating.
This commit is contained in:
parent
1620ff2979
commit
a91fd063bb
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user