From 38f524667968004b206804bf428c158f37b477da Mon Sep 17 00:00:00 2001 From: Bobloy Date: Wed, 7 Mar 2018 12:41:54 -0500 Subject: [PATCH] Typing() fixx? --- chatter/chatter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chatter/chatter.py b/chatter/chatter.py index 3498af6..1616c66 100644 --- a/chatter/chatter.py +++ b/chatter/chatter.py @@ -126,8 +126,8 @@ class Chatter: text = text.replace(to_strip, "", 1) async with channel.typing(): response = self.chatbot.get_response(text) - if response: - await channel.send(response) - else: - await channel.send(":thinking:") + if not response: + response = ":thinking:" + await channel.send(response) +