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):