Deploying CloneBot to Clever Cloud for Free

Deploying CloneBot to Clever Cloud for Free

@katarina_novi

Please watch this video while reading this tutorial!

https://www.youtube.com/watch?v=C_aCmVDfqbc


Clever Cloud offers 20 euro credits for registering and we can host one app 40 days in one account and the app can alive for 24/7, unlike heroku, where free plan apps can only alive for 24h then the app will be restarted. If you run out of credits, just make a new account, you can also try using temp mail for that hehe.

  1. Register to Clever Cloud (https://clever-cloud.com), fill the information with fake name generator (you can use https://www.fakenamegenerator.com), and then verify the email
  2. Open https://replit.com/@tiararose/CloneBotCleverCloud, press the play button
  3. Wait, and then a browser window will be opened inside the tab and the terminal will appear again
  4. You can enter your credentials inside that window or you can click the link in the terminal and open it in your browser. I personally prefer clicking the link first then opening it in my own browser instead of using that window since it's too small and too hard to use (especially if you use your phone to visit the repl link). After logging in, check the repl terminal
  5. If the repl terminal says "successful", reload the clever cloud console tab and check your Clever Cloud apps. If there are two CloneBot apps, then it's successful. Close the replit tab then
  6. Delete one of the CloneBot apps by clicking the app > information > scroll down, and press remove the application
  7. Press the remaining app, press environmental variables tab
  8. Press expert
  9. There'll be a checkbox. Replace the inside with this:
group_ids="-1"
PORT="8080"
telegram_token=""
user_ids=""

10. Press simple again, and fill them according these

gclone_para_override = don't add this env if you don't know how to use it
group_ids = your telegram group ID (leave it "-1" if you don't want to add one). To get your group id, add @MissRose_bot to your group and type /id inside the group
telegram_token = go to @BotFather and send /newbot to get one
user_ids = Your user id (go to @MissRose_bot and type /id to get your id) - If you want to authorize multiple users, add a comma between each ID (ex: 150654065,5897065)

11. Press update changes (green button)

12. After that, go to overview tab, press start button

13. You can press logs tab if you wanna know the deployment process

14. If the logs give you a green checkmark symbol, then your bot is active hehe

Report Page