FIx att 4

This commit is contained in:
2024-04-09 01:06:03 +02:00
parent a484b792ea
commit 55fc5cc16f
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -44,6 +44,8 @@ import yt_dlp
from spotify_dl import spotify
from spotify_dl import youtube as youtube_download
import communication_subroutine
COMM_Q = Queue()
Music_Config = TypedDict(
"Music_Config",
@@ -2218,7 +2220,11 @@ if __name__ == "__main__":
logger.info("Starting discord bot")
threads = []
threads.append(threading.Thread(target=client.run, args=(TOKEN,)))
communication_subroutine.comm_subroutine()
for worker in threads:
worker.start()
for worker in threads:
worker.join()
# widok - generuje się 5 stron po 4 linki
# odśwież - zamienić na "dalej" - zaciąga kolejne 20 rezultatów
+1 -1
View File
@@ -51,7 +51,7 @@ def waitress_run(_logger):
_logger.info("Attempt waitress")
serve(app, host=HOST_ADDRESS, port=PORT_ADDRESS)
if __name__ == "__main__":
def comm_subroutine():
logger = logging.getLogger('conjurer_musician')
logger.setLevel(logging.DEBUG)
logger.info("Started")