From f30fee78bf8eeac0177cc9388bb91754ac80a9cf Mon Sep 17 00:00:00 2001 From: Migatu Date: Tue, 9 Apr 2024 13:15:59 +0200 Subject: [PATCH] Back to flask --- bot.py | 2 +- communication_subroutine.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 9e09db0..0d75cd5 100644 --- a/bot.py +++ b/bot.py @@ -2227,7 +2227,7 @@ if __name__ == "__main__": logger.info("Starting discord bot") threads = [] threads.append(threading.Thread(target=client.run, args=(TOKEN,))) - threads.append(threading.Thread(target=comm_subroutine, args=(logger))) + threads.append(threading.Thread(target=comm_subroutine, args=(logger,))) for worker in threads: worker.start() for worker in threads: diff --git a/communication_subroutine.py b/communication_subroutine.py index 6f4b570..0e41a39 100644 --- a/communication_subroutine.py +++ b/communication_subroutine.py @@ -59,8 +59,8 @@ def comm_subroutine(logger): logger.setLevel(logging.DEBUG) logger.info("Started") threads = [] - #threads.append(threading.Thread(target=flask_debug, args=(logger,))) - threads.append(threading.Thread(target=waitress_run, args=(logger,))) + threads.append(threading.Thread(target=flask_debug, args=(logger,))) + #threads.append(threading.Thread(target=waitress_run, args=(logger,))) threads.append(threading.Thread(target=scan_queue,)) for worker in threads: