Update aitrain.py
This commit is contained in:
parent
1c097db3a5
commit
37c0e32b7f
1 changed files with 2 additions and 3 deletions
|
@ -30,7 +30,6 @@ 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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue