|
|
@ -40,7 +40,7 @@ def get_subreddit_threads():
|
|
|
|
password=passkey,
|
|
|
|
password=passkey,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
pickThread(reddit)
|
|
|
|
submission = pickThread(reddit)
|
|
|
|
|
|
|
|
|
|
|
|
print_substep(f"Video will be: {submission.title} :thumbsup:")
|
|
|
|
print_substep(f"Video will be: {submission.title} :thumbsup:")
|
|
|
|
console.log("Getting video comments...")
|
|
|
|
console.log("Getting video comments...")
|
|
|
@ -91,6 +91,8 @@ def pickThread(reddit):
|
|
|
|
threads = subreddit.hot(limit=25)
|
|
|
|
threads = subreddit.hot(limit=25)
|
|
|
|
submission = list(threads)[random.randrange(0, 25)]
|
|
|
|
submission = list(threads)[random.randrange(0, 25)]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return submission
|
|
|
|
|
|
|
|
|
|
|
|
def configurePasskey():
|
|
|
|
def configurePasskey():
|
|
|
|
if os.getenv("REDDIT_2FA", default="no").casefold() == "yes":
|
|
|
|
if os.getenv("REDDIT_2FA", default="no").casefold() == "yes":
|
|
|
|
print(
|
|
|
|
print(
|
|
|
|