From e7919b71ab011461825fadfcf0b7e55f8c7a112e Mon Sep 17 00:00:00 2001 From: yasirarism <55983182+yasirarism@users.noreply.github.com> Date: Fri, 16 Dec 2022 10:14:52 +0700 Subject: [PATCH] Update misc_tools.py --- misskaty/plugins/misc_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misskaty/plugins/misc_tools.py b/misskaty/plugins/misc_tools.py index cfa16aef..8c9784ef 100644 --- a/misskaty/plugins/misc_tools.py +++ b/misskaty/plugins/misc_tools.py @@ -135,7 +135,7 @@ async def translate(client, message): 'text': text } try: - tekstr = (await http.post("https://deep-translator-api.azurewebsites.net/google/", json=json_dara)).json()["translation"] + tekstr = (await http.post("https://deep-translator-api.azurewebsites.net/google/", json=json_data)).json()["translation"] await msg.edit(f"{tekstr}") except MessageTooLong: url = await rentry(tekstr)