Cloud Host

KoyebHerokuRender
Deploy To KoyebDeploy To HerokuDeploy to Render

Koyeb (Free)

Deploy To Koyeb

  • YT Video:
  • YT Video by a user:

For most people above videos are enough to deploy Moon-Userbot. Though if you still haven’t been able to understand or deploy Moon-Userbot or maybe you’re a reading type person (like me), then continue reading.

1. Create your account

Go to Koyeb and sign up. Remember to use your real Gmail or your GitHub for it.

2. Generate a string session

Using this script or Replit.

3. Deploy

Click on Deploy to Koyeb.

You’ll be redirected to Koyeb’s Deploy page. It’ll look like this:

PCMobile
Koyeb DeployKoyeb Deploy

4. Configure environment variables:

Step A: Click on Environment Variables

Step B: Choose Raw Editor

Step C: Copy and paste .env.dist

Step D: Edit the variables with your own values. Do not remove any variable. Leave it blank if you don't want to use an optional variable.

Step E: Add a variable PORT with value 8080

5. Choose builder:

  • Dockerfile: Override Dockerfile location

  • Buildpacks: Override run command as python main.py

6. Choose region as Washington DC.

7. Change Exposed Port to 8080.

8. Click Deploy and wait for the build to finish.

Render

Deploy to Render

  1. Click on Deploy to Render.

  2. Add your environment variables. Click New Environment Variable.

  3. Copy and paste the contents of .env.dist.

  4. Edit the variables with your own values.

  5. Click Add to save them.

  6. Render will automatically build and deploy your Moon-Userbot.

Heroku

Deploy To Heroku

Heroku is no longer free. But you can still deploy Moon-Userbot on Heroku if you’re a paid user of it. Since we don’t have any paid Heroku account, we can’t provide you with a detailed guide. Feel free to contribute if you have a paid Heroku account and can help us with the guide.