Added prefix to PR

This commit is contained in:
Twentysix 2016-03-11 19:35:51 +01:00
parent 96a3b95d67
commit 77d3056da2

View File

@ -97,7 +97,7 @@ class CustomCommands:
if cmdlist: if cmdlist:
msg = "```Custom commands:\n" msg = "```Custom commands:\n"
for cmd in sorted([cmd for cmd in cmdlist.keys()]): for cmd in sorted([cmd for cmd in cmdlist.keys()]):
msg += " {}\n".format(cmd) msg += " {}{}\n".format(ctx.prefix, cmd)
fmsg = msg + "```" fmsg = msg + "```"
await self.bot.whisper(fmsg) await self.bot.whisper(fmsg)
else: else:
@ -146,4 +146,4 @@ def setup(bot):
check_files() check_files()
n = CustomCommands(bot) n = CustomCommands(bot)
bot.add_listener(n.checkCC, "on_message") bot.add_listener(n.checkCC, "on_message")
bot.add_cog(n) bot.add_cog(n)