From 9de37b1fd1a5a6488bec12b8e463e437699168ac Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Sat, 23 Mar 2019 20:36:25 -0700 Subject: [PATCH] [V2 Chatchart] Escape dollar signs --- chatchart/chatchart.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chatchart/chatchart.py b/chatchart/chatchart.py index a150e72..1f8fb47 100644 --- a/chatchart/chatchart.py +++ b/chatchart/chatchart.py @@ -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