From 02978e0f741ab5cb23fd13ec35ddf553b060ba57 Mon Sep 17 00:00:00 2001 From: Flame442 <34169552+Flame442@users.noreply.github.com> Date: Wed, 10 Jun 2020 16:42:24 -0400 Subject: [PATCH] Fix python being angry about \$ (#125) --- chatchart/chatchart.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chatchart/chatchart.py b/chatchart/chatchart.py index 0aa9749..65c9bb0 100644 --- a/chatchart/chatchart.py +++ b/chatchart/chatchart.py @@ -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