This commit is contained in:
2024-04-09 01:27:14 +02:00
parent ee0836ed7e
commit b43321d36e
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -2220,7 +2220,7 @@ if __name__ == "__main__":
logger.info("Starting discord bot")
threads = []
threads.append(threading.Thread(target=client.run, args=(TOKEN,)))
communication_subroutine.comm_subroutine(OUT_COMM_Q)
threads.append(threading.Thread(target=communication_subroutine.comm_subroutine, args=(OUT_COMM_Q,)))
for worker in threads:
worker.start()
for worker in threads:
+2 -1
View File
@@ -60,5 +60,6 @@ def comm_subroutine(comm_q):
for worker in threads:
worker.start()
for worker in threads:
worker.join()
return threads