From 2412b53f596660a18fb7b67a9af7aa62e119ba1b Mon Sep 17 00:00:00 2001 From: bytequill Date: Mon, 31 Mar 2025 21:23:47 +0200 Subject: [PATCH] :wrench: Added fallback mechanism for manual token entry --- Python/CLI/DiscordRemoteAuthCLI/dcRemoteAuthCLI.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Python/CLI/DiscordRemoteAuthCLI/dcRemoteAuthCLI.py b/Python/CLI/DiscordRemoteAuthCLI/dcRemoteAuthCLI.py index 371b78b..9b87081 100644 --- a/Python/CLI/DiscordRemoteAuthCLI/dcRemoteAuthCLI.py +++ b/Python/CLI/DiscordRemoteAuthCLI/dcRemoteAuthCLI.py @@ -81,7 +81,10 @@ def main(): con.print(P_CHK+"Got token from env") else: con.print(P_ERR+"Could not get token from env. Create a .env with the variable DC_TOKEN") - exit(1) + DC_TOKEN = con.input(P_INP+"[yellow]Fallback[/yellow] Please enter the token manually. It is reccomended to verify it: ") + if not DC_TOKEN and len(DC_TOKEN) == 0: + exit(1) + con.print(P_INF+"Token is "+DC_TOKEN) res = prompt_bool(con,P_INP+"Do you want to verify token?", False) if res: