From 99b4a1d9f50284745b145cfa32ba269589867ad5 Mon Sep 17 00:00:00 2001 From: bobloy Date: Thu, 30 Jul 2020 12:47:21 -0400 Subject: [PATCH] Actually remove mention from submitted text --- chatter/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatter/chat.py b/chatter/chat.py index fe8c839..fd10a7b 100644 --- a/chatter/chat.py +++ b/chatter/chat.py @@ -337,8 +337,8 @@ class Chatter(Cog): # A bit more aggressive, could remove two mentions # Or might not work at all, since mentionables are pre-cleaned_content + message.content = message.content.replace(prefix, "", 1) text = message.clean_content - text.replace(prefix, "", 1) async with channel.typing(): future = await self.loop.run_in_executor(None, self.chatbot.get_response, text)