Breaking the language barrier for free.
An open-source, free Discord Translator Bot built using google-translate-api and Discord.js.

Please note some of these links direct you towards our website
Click to expand contents

Click here or use the button in the upper righthand side of this page to fork the repository so that it will be associated with your Github account.
Please star our project if you like it using the top-right Star icon. Every star helps us!

yourname-discordbot is fineScroll down to the manual deploy section, and select the Master branch. Click deploy branch, and wait for the successfully deployed message.
Go to the Resources tab and look for the addons section. Search 'Postgres', and add a 'Hobby Dev - Free' version of Heroku Postgres. This will be automatically attached as your bot's database.
web npm start dyno and turn on the worker node src/bot.js dyno. Your bot will now be up and running!Heroku Postgres Addon in the Resources Tab of Heroku or else your bot shall not run!Replace the CLIENTID string in the following URL with your own apps client id from Step 2:
Visit the resulting URL and add your bot to any server where you have admin privileges.
Once added, your bot should show up as online, now go back to Heroku and go to the "Deploy" section, scroll down to "Manual Deploy" and deploy the master branch. Once finished deploying type in !t settings dbfix, !t settings updatedb and!t embed on or !t embed off in chat and you are good to go!
!t help and !t help modules to learn more about the commands Rita has!Important Note
!t embed command is changeable whenever you like. It simply decides wether you would like translations to be sent as Webhooks (more user-like, profile picture) or embed (bot sends message with anembed message contintaining user profile picture.)!t settings updatedb!t settings dbfix!t embed on or !t embed off (value of the translation style)The bot can also be run locally on a device. The local setup requires more steps since the database needs to be setup and the development tools need be installed. Please note that for the bot to continue running 24/7, the process of node src/bot.js should always remain online and thus your PC/hosting device must remain online too
Any Database that runs with SQL Sequelize can be used. My recommendation is to use the SQL Lite database since the setup is fast and access is easy. Copy the connection details to the database for the next step. Example: The connection to a sqlite database with the name database.db stored at the same level of this README file would be ./database.db.
Install node.js and make sure you have Git and npm installed
git clone https://github.com/Zyc0r3/RitaBotnpm installRename the existing .env.example file and name it .env. Edit the Values of DISCORD_TOKEN, and the DATABASE_URL according to the values that you in Step 2 of "Setting Up a New Bot" .
* DATABASE_URL needs to be the path to the database file (if you set DATABASE_URL to any of these values: ./database.db, C:/FOLDER/ok.db, ../random.db they will all work because they lead to a directory in which SQLite then creates the .db file )
* Example - DATABASE_URL = C:\Admin\Rita_Development\test.db
Visit the resulting URL and add your bot to any server where you have admin privileges.
Once added, your bot should show up as online. However, the first deploy is always broken so you have to turn it off and deploy the bot again.
!t settings dbfix!t settings updatedb!t embed on or !t embed off!t help and !t help modules to learn more about the commands Rita has!!t tasks #TargetChannel Implementation.!t embed off version) using Nickname instead of Username (1.3.0) This project was originally released by Aziz under the MIT license. He chose to take the project private/commercial at version 0.4.2 Beta. Bobby Johnson forked the project and renamed it Louie after his dog. AlooAkbar forked Louie and added the necessary modifications for simple and free deployment of the bot using Heroku. ZyC0R3 Picked up the fork and as part of a team fixed over 200 errors and brought it in to the modern age, All would like to thank Aziz for his hard work and making these early versions OSS so that others may learn and build on his hard work to share with the community.
Rita is the culmination of many things, it started with a mobile game, a community of gamers, a discord server of different languages and a desire to all be understood. She is a Real-Time Translator Bot for use on Discord, Hosted using Heroku and Local Devices and Completly 100% Free. She is maintained by a small group of users, each with different backgrounds and some learning as we go.
The mobile game itself would get old, fast. The community around it, however, is what kept us going. The one downside was we didn't all speak the same language. The game we played translated our conversations for us but Discord didn't, so the server admins used a translation bot called C-3P0. This introduction is the start of the story.
There are loads of different translation bots out there, some are amazing, some are expensive, some are free but have limits, and others are just rubbish. C-3P0 checked all these boxes.
*Originally called discord-translator and made by Aziz, then forked By NotMyself and renamed Louie, forked again By AlooAkbar and renamed C-3P0, its code was neglected
$ claude mcp add RiTA-DiscordBot \
-- python -m otcore.mcp_server <graph>