Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rdavydov authored Dec 2, 2022
1 parent 6d67ca3 commit 5617580
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ twitch_miner = TwitchChannelPointsMiner(
# For example, if in the mine function you don't provide any value for 'make_prediction' but you have set it on TwitchChannelPointsMiner instance, the script will take the value from here.
# If you haven't set any value even in the instance the default one will be used

#twitch_miner.analytics(host="127.0.0.1", port=5000, refresh=5, days_ago=7) # Start the Analytics web-server
#twitch_miner.analytics(host="127.0.0.1", port=5000, refresh=5, days_ago=7) # Start the Analytics web-server (replit: host="0.0.0.0")

twitch_miner.mine(
[
Expand Down Expand Up @@ -400,6 +400,14 @@ Run a new Repl with the master branch:

Official Repl with description and added keep-alive functionality: https://replit.com/@rdavydov/Twitch-Channel-Points-Miner-v2

#### Tricks to run 24/7 on Replit for free

1. Enable Analytics (set `host="0.0.0.0"`)
2. Note down the output URL (in most cases it is `https://Twitch-Channel-Points-Miner-v2.<YOUR_REPLIT_USERNAME>.repl.co`)
3. Send an HTTP request to that URL every 5 minutes

Use a service that can send HTTP requests at regular intervals, such as Uptimerobot.

### Limits
> Twitch has a limit - you can't watch more than two channels at one time. We take the first two streamers from the list as they have the highest priority.
Expand Down

0 comments on commit 5617580

Please sign in to comment.