[Chatchart] Escape dollar signs

Closes #40.
This commit is contained in:
aikaterna
2019-03-23 20:35:06 -07:00
committed by GitHub
parent e543eedccc
commit 2aeee1533b

View File

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