[Help] Fix long cog helps (#2730)

* [Help] Fix long cog helps

  - Why do people thing a category help of over 250 characters is more
  useful than putting the help in relevent commands?!

* toss an MD fix in here too I guess
This commit is contained in:
Michael H 2019-05-31 15:37:50 -04:00 committed by Kowlin
parent e7b615d921
commit 3ca2a9af28

View File

@ -166,7 +166,7 @@ class RedHelpFormatter:
if command.help:
splitted = command.help.split("\n\n")
name = "__{0}__".format(splitted[0])
name = splitted[0]
value = "\n\n".join(splitted[1:]).replace("[p]", ctx.clean_prefix)
if not value:
value = EMPTY_STRING
@ -287,7 +287,13 @@ class RedHelpFormatter:
emb["footer"]["text"] = tagline
if description:
emb["embed"]["title"] = f"*{description[:2044]}*"
splitted = description.split("\n\n")
name = splitted[0]
value = "\n\n".join(splitted[1:]).replace("[p]", ctx.clean_prefix)
if not value:
value = EMPTY_STRING
field = EmbedField(name[:252], value[:1024], False)
emb["fields"].append(field)
if coms: