Actually remove mention from submitted text

This commit is contained in:
bobloy 2020-07-30 12:47:21 -04:00
parent 225246be9a
commit 99b4a1d9f5

View File

@ -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)