From 37c0e32b7f2509e300f4d21a087bfd03742eb2b6 Mon Sep 17 00:00:00 2001 From: insert username here Date: Fri, 21 May 2021 12:40:44 -0400 Subject: [PATCH] Update aitrain.py --- aitrain.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aitrain.py b/aitrain.py index 6867bda..57ca6f8 100644 --- a/aitrain.py +++ b/aitrain.py @@ -30,9 +30,8 @@ async def on_message(message): elif message.content.lower().startswith("—"): pass else: - async with message.channel.typing: - writing_function = functools.partial(add_to_train, message.clean_content) - await bot.loop.run_in_executor(None, writing_function) + writing_function = functools.partial(add_to_train, message.clean_content) + await bot.loop.run_in_executor(None, writing_function) @commands.is_owner() @client.command()