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.
- Install both discord.py and google-trans-new package:
pip install discord.py
pip install google-trans-new
- Replace the BOT_TOKEN_HERE string with the actual discord bot token in the translator.py file.
token = "BOT_TOKEN_HERE"
- Run the bot:
python translator.py
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.
Pull requests are welcome.
Please help enhance the code to add more languages since only French, English, and Spanish are supported as of yet.