This page will walk you through how to host Rita Locally

Local Installation Support

The bot can also be run locally without Heroku. The local setup requires more steps since the database needs to be setup and the development tools need be installed. Start with the steps 1 and 2 in Setting up a New Bot and the continue as follows:

Step 1 - Create a local db

Any Database that runs with SQL Sequelize (‘https://sequelize.org/master/’) 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.

Step 2 - Create a new .env File

Copy the existing .env.example file and name it .env. Edit the Values of DISCORD_TOKEN and DISCORD_BOT_OWNER_ID according to the values that you copied earlier.

Step 3 - Install nodejs

Install nodejs from https://nodejs.org/en/

Step 4 - Run and start the bot

Run npm install in your console to install the required NPM modules. Then run the bot with npm start.

Step 5 - Invite the Bot

  • Replace the CLIENTID string in the following URL with your own apps client id: https://discordapp.com/oauth2/authorize?&client_id=CLIENTID&scope=bot&permissions=8
  • Visit the resulting URL and add your bot to any server where you have admin privileges.
  • Once added, your bot should show up more or less instantaneously. Type !tr help within the discord chat for more details on how to use it. Happy translating!
Last modified 7d ago