What is Translate Bot? Translate Bot is a Discord bot written in NodeJS with the discord.js library. It automatically translates messages from predefined channels and sends them to an output channel. It also has a manual t!translate command.
{
"watched": [
"Discord Channel ID with foreign messages 1",
"Discord Channel ID with foreign messages 2"
],
"output": "Discord Channel ID of output channel",
"prefix": "t!"
}
TOKEN=Discord Bot Token
PROJECTID=Google Web Console Project ID
JSON file containing API keys.
- Set out the files listed above, except for
api.json
. - Create a Google Cloud Platform Account.
- Enable the Google Translate ML API.
- Create a service account.
- Download the JSON API key file.
- Paste into project directory as
api.json
. node bot.js