Fix python being angry about \$ (#125)

This commit is contained in:
Flame442
2020-06-10 16:42:24 -04:00
committed by GitHub
parent 633f1e0c4b
commit 02978e0f74

View File

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