From 2784872d129a50da72e5797674d024e5a7ac6771 Mon Sep 17 00:00:00 2001 From: josephsmendoza Date: Sun, 20 Jul 2025 15:57:49 -0700 Subject: [PATCH] fix early login request --- astrolobot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/astrolobot.py b/astrolobot.py index c68a8f2..4855c23 100755 --- a/astrolobot.py +++ b/astrolobot.py @@ -138,8 +138,12 @@ def get_transits_formatted(): # Twitch functions +device_code=None + def login(*args): global device_code + if device_code==None: + print('astrolobot is still starting, please wait',sys.stderr) webbrowser.open('https://www.twitch.tv/activate?public=true&device-code='+device_code) def save_tokens(access_token,refresh_token):