aboutsummaryrefslogtreecommitdiff
path: root/follow-src/source.py
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2022-03-11 23:13:00 -0700
committerBryson Steck <steck.bryson@gmail.com>2022-03-11 23:13:00 -0700
commit2bfa510156245735582227b881c2115958abc64b (patch)
tree4bac8d91b3552b037fdf7029cc0a2a9642c1686e /follow-src/source.py
parent787a307b83cb8c1ca9272f8068fef641298bfd55 (diff)
downloadlset-2bfa510156245735582227b881c2115958abc64b.tar
lset-2bfa510156245735582227b881c2115958abc64b.tar.gz
lset-2bfa510156245735582227b881c2115958abc64b.tar.bz2
fixed help command
Diffstat (limited to 'follow-src/source.py')
-rw-r--r--follow-src/source.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/follow-src/source.py b/follow-src/source.py
index b17b9ac..0ecd5ce 100644
--- a/follow-src/source.py
+++ b/follow-src/source.py
@@ -1,6 +1,7 @@
import requests
import time
import json
+import os
with open('settings.json') as f:
settings = json.load(f)
@@ -11,7 +12,7 @@ WRITE_FILE = settings['write_file']
USER = settings['username']
UPDATE = settings['seconds_interval']
-print("Running!")
+print("* Follower/sub goal is now running. To add to your stream, add a text source and open the file " + os.path.abspath(WRITE_FILE) + " to display on your stream.")
while(True):
followers = open(WRITE_FILE, 'w')
url_follows = "https://api.crunchprank.net/twitch/followcount/" + USER
@@ -23,3 +24,4 @@ while(True):
print(f"Subs: {read_subs.text}/{SUB_GOAL}\nFollower goal: {read_follows.text}/{FOLLOWER_GOAL}\n", end='', file=followers)
followers.close()
time.sleep(UPDATE)
+