From f072cd724954de9f498c53b400e0c1d134dae916 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 29 Dec 2018 01:49:33 +0100 Subject: [PATCH] escape --- discordbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordbot.py b/discordbot.py index 5a173118..33e683b2 100644 --- a/discordbot.py +++ b/discordbot.py @@ -642,7 +642,7 @@ class RoyalDiscordBot(discord.Client): # Rich presence try: if member.activity.state is not None: - message += f" ({escape(member.activity.state} | {member.activity.details)})" + message += f" ({escape(member.activity.state)} | {escape(member.activity.details)})" except AttributeError: message += f" (⚠️)" elif member.activity.type == discord.ActivityType.streaming: