aboutsummaryrefslogtreecommitdiff
path: root/follow-src
diff options
context:
space:
mode:
Diffstat (limited to 'follow-src')
-rw-r--r--follow-src/source.py4
-rw-r--r--follow-src/source_output.txt0
2 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)
+
diff --git a/follow-src/source_output.txt b/follow-src/source_output.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/follow-src/source_output.txt