|
|
@ -55,6 +55,7 @@ console.log("[bold green]Reddit Client ID")
|
|
|
|
console.log("[bold green]Reddit Client Secret")
|
|
|
|
console.log("[bold green]Reddit Client Secret")
|
|
|
|
console.log("[bold green]Reddit Username")
|
|
|
|
console.log("[bold green]Reddit Username")
|
|
|
|
console.log("[bold green]Reddit Password")
|
|
|
|
console.log("[bold green]Reddit Password")
|
|
|
|
|
|
|
|
console.log("[bold green]Reddit 2FA (yes or no)")
|
|
|
|
time.sleep(0.5)
|
|
|
|
time.sleep(0.5)
|
|
|
|
console.print("[green]If you don't have these, please follow the instructions in the README.md file to set them up.")
|
|
|
|
console.print("[green]If you don't have these, please follow the instructions in the README.md file to set them up.")
|
|
|
|
console.print("[green]If you do have these, type yes to continue. If you dont, go ahead and grab those quickly and come back.")
|
|
|
|
console.print("[green]If you do have these, type yes to continue. If you dont, go ahead and grab those quickly and come back.")
|
|
|
@ -78,6 +79,7 @@ cliID = input("Client ID > ")
|
|
|
|
cliSec = input("Client Secret > ")
|
|
|
|
cliSec = input("Client Secret > ")
|
|
|
|
user = input("Username > ")
|
|
|
|
user = input("Username > ")
|
|
|
|
passw = input("Password > ")
|
|
|
|
passw = input("Password > ")
|
|
|
|
|
|
|
|
twofactor = input("2fa Enabled? (yes/no) > ")
|
|
|
|
console.log("Attempting to save your credentials...")
|
|
|
|
console.log("Attempting to save your credentials...")
|
|
|
|
loader = Loader("Saving Credentials...", "Done!").start()
|
|
|
|
loader = Loader("Saving Credentials...", "Done!").start()
|
|
|
|
# you can also put a while loop here, e.g. while VideoIsBeingMade == True: ...
|
|
|
|
# you can also put a while loop here, e.g. while VideoIsBeingMade == True: ...
|
|
|
@ -94,6 +96,8 @@ with open('.env', 'a') as f:
|
|
|
|
f.write(f'REDDIT_USERNAME="{user}"\n')
|
|
|
|
f.write(f'REDDIT_USERNAME="{user}"\n')
|
|
|
|
time.sleep(0.5)
|
|
|
|
time.sleep(0.5)
|
|
|
|
f.write(f'REDDIT_PASSWORD="{passw}"\n')
|
|
|
|
f.write(f'REDDIT_PASSWORD="{passw}"\n')
|
|
|
|
|
|
|
|
time.sleep(0.5)
|
|
|
|
|
|
|
|
f.write(f'REDDIT_2FA="{twofactor}"\n')
|
|
|
|
|
|
|
|
|
|
|
|
with open('.setup-done-before', 'a') as f:
|
|
|
|
with open('.setup-done-before', 'a') as f:
|
|
|
|
f.write("This file blocks the setup assistant from running again. Delete this file to run setup again.")
|
|
|
|
f.write("This file blocks the setup assistant from running again. Delete this file to run setup again.")
|
|
|
|