This is a custom Google Translate Discord bot using the googletrans API library
-
Create a Bot account and invite the Bot to a Discord server
-
Add
translate_discord.pyandkeep_alive.pyto a new repository on Replit -
Replace
TOKENwith the Discord Bot token
Run the following in the bash shell:
pip install discord
pip install translate==3.1.0
pip install Flask
- Then run
main.py, this should generate a URLhttps://googletranslatebot.winniiew.repl.co/that can then be used in UptimeRobot to host the Discord bot.
- Click
+ Add New Monitor - Select
HTTP(s)underMonitor Types - Paste the generated URL
- Change the monitoring interval to 5 minutes
The list of available languages within the googletrans library
!t zh-tw hello
hello -> 你好
!t en こんにちは
こんにちは -> hello
