From 2bfa510156245735582227b881c2115958abc64b Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Fri, 11 Mar 2022 23:13:00 -0700 Subject: fixed help command --- follow-src/source.py | 4 +++- follow-src/source_output.txt | 0 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 follow-src/source_output.txt (limited to 'follow-src') 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 -- cgit v1.2.3