WaterGenie35 / discord-auto-translate-bot

2 stars 3 forks source link

Discord Auto-Translate Bot

Overview

  1. Link source (channel, language) pair to target (channel, language) pair
  2. Bot automatically translates messages from source channel to target channel in source language to target language.

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.

Setup

$ cd /path/to/discord-auto-translate-bot
$ virtualenv venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt

Run

$ source venv/bin/activate
$ python3 auto-translate/bot.py

Discord Commands

Resources and Links

Notes on nvu's Discord Translator Bot

Since 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.