Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Installing on the cloud with Heroku

chenzw95 edited this page Apr 1, 2018 · 5 revisions

Want to install your selfbot on the cloud using Heroku? Use this guide, courtesy of NdT3!

First, make a backup for if something goes wrong. If you need to run the selfbot locally, run this backup, as the changes that will be made to one of the files will mean that the selfbot will not be able to log in.

  1. Make a Heroku app/server(Python)

  2. Download the Heroku CLI

  3. Now use cd to enter the directory of where you stored the selfbot

  4. Delete the .gitignore file in the selfbot folder.

  5. Then also in the selfbot folder create a txt document called runtime.txt and paste inside of it enter this: python-3.5.2 https://i.imgur.com/YLupKom.png

  6. Now check your selfbot is up to date by running the batch file and checking, after this remember to close your selfbot

    • Make sure to completely start the selfbot, including completing the setup wizard if necessary, before continuing.
  7. Then go to your app settings on Heroku and click on Reveal Config Vars and in the first field, type TOKEN and in the second field, paste your Discord token: https://i.imgur.com/fckTzG8.png

  8. Then open cmd (Win + R 'cmd' (without the quotes)) then type heroku login

  9. After logging in type git init but make sure you are still in the folder where the selfbot files are

  10. Next enter this command heroku git:remote -a 'INSERTNAMEOFAPPHERE' (without the quotes) then press enter

  11. Now to get the code to heroku you do as follows git add .

  12. Type git commit -am "initial commit" and press enter

  13. Then to push the code you enter git push heroku master

  14. Then finally, to start the bot you do heroku ps:scale worker=1

Extras: *to restart worker you do heroku ps:restart worker and to view logs go to More in the top right hand corner and click on View logs: https://i.imgur.com/NGRAkpO.png and to turn it off you can do heroku ps:scale worker=0