mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-17 07:12:09 +00:00
FIX????
This commit is contained in:
@@ -2220,7 +2220,7 @@ if __name__ == "__main__":
|
|||||||
logger.info("Starting discord bot")
|
logger.info("Starting discord bot")
|
||||||
threads = []
|
threads = []
|
||||||
threads.append(threading.Thread(target=client.run, args=(TOKEN,)))
|
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:
|
for worker in threads:
|
||||||
worker.start()
|
worker.start()
|
||||||
for worker in threads:
|
for worker in threads:
|
||||||
|
|||||||
@@ -60,5 +60,6 @@ def comm_subroutine(comm_q):
|
|||||||
|
|
||||||
for worker in threads:
|
for worker in threads:
|
||||||
worker.start()
|
worker.start()
|
||||||
|
for worker in threads:
|
||||||
|
worker.join()
|
||||||
|
|
||||||
return threads
|
|
||||||
|
|||||||
Reference in New Issue
Block a user