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 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'follow-src/source.py') 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) + -- cgit v1.2.3