Fixed help command formatting

master
Joey Hines 2019-05-11 11:57:44 -05:00
parent c0f9b5e883
commit 83aa17f375
1 changed files with 2 additions and 3 deletions

View File

@ -142,8 +142,7 @@ class GeoffreyBot(commands.Bot):
await ctx.send(msg)
def build_help_page(self):
help_list = ["```"]
help_list = []
largest_command_size = 0
for command in self.command_list:
if largest_command_size < len(command["command"]):
@ -158,7 +157,7 @@ class GeoffreyBot(commands.Bot):
help_list.append(" {}{}{}".format(self.prefix, name, command["help"]))
help_list.append("\nDo ?help <command name> to get more info on any of the commands above")
help_list.append("```")
return help_list