This guide will show you how to run Mimo on replit.
First, you need to fork the repository. To do this, you can either:
- You can try to fork the replit here and then import it to replit.
- Or you can fork the repository on GitHub and then import it to replit.
- Click on the
Import from GitHub
button and paste the URL of the repository.
There are two ways to run Mimo correctly.
You can run Mimo by typing the following command in the terminal:
node .
Or
npm run start-replit
Otherwise Mimo will default to the start
script in the package.json
file
if you press the start button, which is:
"start": "pm2 start ./lib/index.js --name mimo && pm2 save && pm2 logs",
Typing the command in the terminal is a bit tedious, so you can use the start button instead. To do this;
- While forking the repl, you can paste one of the above commands in the start command box.
- Or you can go to the
package.json
file and change the start script as follows:
"start": "node ./lib/index.js",
Make sure you do not commit this change to the GitHub repository, otherwise this will change how the bot works on your local machine after you pull the changes. You can use the
git update-index --assume-unchanged package.json
command to ignore the changes to thepackage.json
file.
If you wish to commit the changes, always make sure to change the start script based on your environment.
You need to set up the environment variables. To do this, go to the secrets
tab and add the following environment discused in the
README.md
Docs coming soon.
Everything should be working now. If you have any issues, feel free to open an issue or join the Discord server.