Skip to content
Advertisement

Tag: google-translate

Google translate in python

When using this code from https://stackabuse.com/text-translation-with-google-translate-api-in-python/ I get ‘AttributeError: ‘NoneType’ object has no attribute ‘group”, and i was wondering what is wrong, the error seems to be on the ‘result = tra…’ line, Thank you for any help Answer Ok, I was too getting this same error. I think there is a issue in the current release. But the new

Translation in discord.py bot doesn’t work

I’ve been trying to make my discord bot translate texts using a module called googletrans. It seems fairly simple and it should have worked without any hassle, or so I thought. So after my import statements, I have translator = Translator(). My following cog code is: But it shows this error: discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: ‘NoneType’ object has

Advertisement