Fixed help command formatting
parent
c0f9b5e883
commit
83aa17f375
|
@ -142,8 +142,7 @@ class GeoffreyBot(commands.Bot):
|
||||||
await ctx.send(msg)
|
await ctx.send(msg)
|
||||||
|
|
||||||
def build_help_page(self):
|
def build_help_page(self):
|
||||||
help_list = ["```"]
|
help_list = []
|
||||||
|
|
||||||
largest_command_size = 0
|
largest_command_size = 0
|
||||||
for command in self.command_list:
|
for command in self.command_list:
|
||||||
if largest_command_size < len(command["command"]):
|
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(" {}{}{}".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("\nDo ?help <command name> to get more info on any of the commands above")
|
||||||
help_list.append("```")
|
|
||||||
|
|
||||||
return help_list
|
return help_list
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue