Update aitrain.py

This commit is contained in:
insert username here 2021-05-21 12:40:44 -04:00 committed by GitHub
parent 1c097db3a5
commit 37c0e32b7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,9 +30,8 @@ async def on_message(message):
elif message.content.lower().startswith(""): elif message.content.lower().startswith(""):
pass pass
else: else:
async with message.channel.typing: writing_function = functools.partial(add_to_train, message.clean_content)
writing_function = functools.partial(add_to_train, message.clean_content) await bot.loop.run_in_executor(None, writing_function)
await bot.loop.run_in_executor(None, writing_function)
@commands.is_owner() @commands.is_owner()
@client.command() @client.command()