Formating added to Economyset

A small quality of life change... It would be nice if we can make the code not like like it comes from 2002 ;)
This commit is contained in:
Kowlin 2016-04-04 07:55:02 +02:00
parent 203b3b5a1a
commit 255842d3e6

View File

@ -213,10 +213,10 @@ class Economy:
async def economyset(self, ctx): async def economyset(self, ctx):
"""Changes economy module settings""" """Changes economy module settings"""
if ctx.invoked_subcommand is None: if ctx.invoked_subcommand is None:
msg = "" msg = "```"
for k, v in self.settings.items(): for k, v in self.settings.items():
msg += str(k) + ": " + str(v) + "\n" msg += str(k) + ": " + str(v) + "\n"
msg += "\nType help economyset to see the list of commands." msg += "\nType help {}economyset to see the list of commands.```".format(ctx.prefix)
await self.bot.say(msg) await self.bot.say(msg)
@economyset.command() @economyset.command()