From 8f0b6f251ed6e83848814bfebb7af31beb825cf7 Mon Sep 17 00:00:00 2001 From: bobloy Date: Tue, 6 Mar 2018 17:03:49 -0500 Subject: [PATCH] escape --- chatter/chatter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chatter/chatter.py b/chatter/chatter.py index f0cabdc..db5296e 100644 --- a/chatter/chatter.py +++ b/chatter/chatter.py @@ -121,9 +121,9 @@ class Chatter: return text = text.replace(to_strip, "", 1) async with channel.typing(): - response = self.chatbot.get_response(text) + response = escape(self.chatbot.get_response(text)) if response: - await channel.send(escape(response)) + await channel.send(response) else: await channel.send(":thinking:")