Added: Exit code for token timeout

This commit is contained in:
gpkvt 2022-08-12 18:52:47 +02:00
parent e462c1b9af
commit 1639eca784

1
tts.py
View file

@ -599,6 +599,7 @@ def main():
webbrowser.open_new_tab(url) webbrowser.open_new_tab(url)
logging.info('Please complete the OAuth process within the next 15 minutes.') logging.info('Please complete the OAuth process within the next 15 minutes.')
time.sleep(900) time.sleep(900)
sys.exit(250)
else: else:
logging.info("Starting IRC bot") logging.info("Starting IRC bot")
irc = IRC() irc = IRC()