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

Host selfstats.py 24 7 For Free on Heroku!

Jason edited this page Nov 14, 2017 · 8 revisions

Made for selfstats.py!

First you need to create an account for Heroku and Github

**You will need your token. For instructions, on how to get your token. ON PC, ON MAC, ON ANDROID

If you are on a phone, once you create both accounts, request the desktop site.

Go to SharpBit/selfstats and click on FORK. THIS IS IMPORTANT

Selfbot setup tutorial with Heroku

Create an Account with Heroku. Image help: Make a Heroku Account

Then go to Heroku Dashboard

Create a personal app

Give it a name

Once you name the app, create it. Go to the settings tab, and click "Reveal Config Vars". Set Key to TOKEN and value to your_token. Make sure to enter your token without quotation marks and to set Key as TOKEN with all caps. Image help: Setting a Token

Then, create another "Key" and set the Key as PREFIX and as the value, put the prefix you want(I prefer cr.) Image help: Setting a Prefix

Then, create another "Key" and set the Key as TAG and as the value, enter your Clash Royale tag WITHOUT the # Image help: Entering a Clash Royale Tag

Then go to the deploy tab and click github. Image help: Deploy tab

If you did everything correctly, type selfstats in the search bar and search for it. It should appear as your_name/selfstats. Click connect. Image help: Connecting the repo

Once you finish that, select the master branch and click Automatic Deploy. Then scroll down a little and under Manual Deploy, choose the master branch, then click Manual Deploy Image help: Auto and Manual Deploy If everything is done correctly, a green tick should appear at the end. Confirmation

Go to the Resources tab and under Free Dynos under worker on the right side, click the pencil icon, then click toggle "worker" on. Image help: Toggle worker on If it doesn't appear, make sure you did everything correct. You MIGHT HAVE TO REFRESH THE PAGE <--------

IF EVERYTHING IS CORRECT, GO TO DISCORD AND TYPE cr.ping, or whatever your prefix is + ping Example 1: Prefix: cr. Type: cr.ping Example 2: Prefix: stats. Type: stats.ping and so on...

UPDATE THE SELFBOT

Go to your forked repository (https://github.com/username/selfstats). Go to settings, scroll down, and click delete repo. Type in the repo name(selfstats) to delete, then refork the repo. In your heroku app, go to deploy and under GitHub, click disconnect. Refresh the page. Connect to GitHub again and redeploy. You have updated the selfbot! I recommend you join the SharpBit discord server to stay tuned with when you should update the bot and all the new commands I am implementing into the selfbot. You can decide when it will be worthwhile to refork the bot to get newer, cooler, and updated commands. If you need help with updating your selfbot, click the link below to join the discord server and ask for help there!

For more help, join the official SharpBit discord server and ask me (SharpBit#1510)

Join the SharpBit discord server for more help!

Clone this wiki locally