Update chatchart.py

This commit is contained in:
aikaterna
2020-11-12 12:55:24 -08:00
committed by GitHub
parent 0e51574a20
commit 89785c955d

View File

@@ -146,7 +146,7 @@ class Chatchart(commands.Cog):
if len(msg.author.display_name) >= 20:
short_name = "{}...".format(msg.author.display_name[:20]).replace("$", "\\$")
else:
short_name = msg.author.display_name.replace("$", "\\$")
short_name = msg.author.display_name.replace("$", "\\$").replace("_", "\\_ ").replace("*", "\\*")
whole_name = "{}#{}".format(short_name, msg.author.discriminator)
if msg.author.bot:
pass