For simplicity, this bot does not perform language detection and simply assume all messages in source channel to be in the source language. The translation is handled by the google cloud translation api.
$ cd /path/to/discord-auto-translate-bot
$ virtualenv venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt
.env.example
.google-service-account-credentials.json.example
.$ source venv/bin/activate
$ python3 auto-translate/bot.py
discord.py
DocumentationsSince the core functionality described in the overview section is a strict subset of nvu's bot, interested users are encouraged to check out nvu's bot instead, they also use google's api. This project is only a "hello world" into discord bots so wheel reinvention wasn't a factor. Also nvu's bot doesn't have a free tier unlike the base google api (500,000 characters per month), so I can still use this in small hobby servers.