[V2 Chatchart] Escape dollar signs

This commit is contained in:
aikaterna
2019-03-23 20:36:25 -07:00
committed by GitHub
parent e31efdba0c
commit 9de37b1fd1

View File

@@ -71,9 +71,9 @@ class ChatChart:
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