-
Notifications
You must be signed in to change notification settings - Fork 602
Installing on the cloud with Heroku
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.
-
Make a Heroku app/server(Python)
-
Download the Heroku CLI
-
Now use
cd
to enter the directory of where you stored the selfbot -
Delete the
.gitignore
file in the selfbot folder. -
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 -
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.
-
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 -
Then open cmd (Win + R 'cmd' (without the quotes)) then type
heroku login
-
After logging in type
git init
but make sure you are still in the folder where the selfbot files are -
Next enter this command
heroku git:remote -a 'INSERTNAMEOFAPPHERE'
(without the quotes) then press enter -
Now to get the code to heroku you do as follows
git add .
-
Type
git commit -am "initial commit"
and press enter -
Then to push the code you enter
git push heroku master
-
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