Skip to content

A discord bot that translates a message to the desired language based on the type of the reaction emoji. For example, reacting to a message with the 'France' flag emoji would translate the message to French.

Notifications You must be signed in to change notification settings

vmpyre/discord-translation-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Discord Translation Bot

A very basic discord bot that translates a message to the desired language based on the type of reaction emoji used. For example, reacting to a message with the 'France' flag emoji would translate the message to French from any other language.

Note: We are utilizing the google-trans-new python library here. Follow the instructions below for Installation and Usage.

Installation

  1. Install both discord.py and google-trans-new package:
pip install discord.py
pip install google-trans-new
  1. Replace the BOT_TOKEN_HERE string with the actual discord bot token in the translator.py file.
token = "BOT_TOKEN_HERE"
  1. Run the bot:
python translator.py

Usage

React to a message with the desired flag emoji to translate the message to the appropriate language. Only French, Spanish and English supported as of 03/08/2021.   alt text

Contributing

Pull requests are welcome.

Please help enhance the code to add more languages since only French, English, and Spanish are supported as of yet.

License

MIT

About

A discord bot that translates a message to the desired language based on the type of the reaction emoji. For example, reacting to a message with the 'France' flag emoji would translate the message to French.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages