From 1639eca784060c8327d8e21164b0f2f03a48c47c Mon Sep 17 00:00:00 2001 From: gpkvt Date: Fri, 12 Aug 2022 18:52:47 +0200 Subject: [PATCH] Added: Exit code for token timeout --- tts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tts.py b/tts.py index e8e5286..2f8e8a6 100644 --- a/tts.py +++ b/tts.py @@ -599,6 +599,7 @@ def main(): webbrowser.open_new_tab(url) logging.info('Please complete the OAuth process within the next 15 minutes.') time.sleep(900) + sys.exit(250) else: logging.info("Starting IRC bot") irc = IRC()