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)