From 657a857e1366b30ce8f13b929a0938df8e422aa2 Mon Sep 17 00:00:00 2001 From: blank X Date: Tue, 3 Nov 2020 18:27:02 +0700 Subject: [PATCH] idiot --- sukuinote/plugins/translate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sukuinote/plugins/translate.py b/sukuinote/plugins/translate.py index a154448..d43dc3b 100644 --- a/sukuinote/plugins/translate.py +++ b/sukuinote/plugins/translate.py @@ -42,7 +42,7 @@ async def translate(client, message): return googletrans.Translator().translate(text, src=src_lang, dest=dest_lang) except AttributeError: time.sleep(0.5) - result = await client.loop.run_in_executor(None, translate) + result = await client.loop.run_in_executor(None, _translate) if result.text == text: text = 'They\'re the same' else: