mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-18 07:42:09 +00:00
FIx att 4
This commit is contained in:
@@ -44,6 +44,8 @@ import yt_dlp
|
|||||||
from spotify_dl import spotify
|
from spotify_dl import spotify
|
||||||
from spotify_dl import youtube as youtube_download
|
from spotify_dl import youtube as youtube_download
|
||||||
|
|
||||||
|
import communication_subroutine
|
||||||
|
|
||||||
COMM_Q = Queue()
|
COMM_Q = Queue()
|
||||||
Music_Config = TypedDict(
|
Music_Config = TypedDict(
|
||||||
"Music_Config",
|
"Music_Config",
|
||||||
@@ -2218,7 +2220,11 @@ 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()
|
||||||
|
for worker in threads:
|
||||||
|
worker.start()
|
||||||
|
for worker in threads:
|
||||||
|
worker.join()
|
||||||
|
|
||||||
# widok - generuje się 5 stron po 4 linki
|
# widok - generuje się 5 stron po 4 linki
|
||||||
# odśwież - zamienić na "dalej" - zaciąga kolejne 20 rezultatów
|
# odśwież - zamienić na "dalej" - zaciąga kolejne 20 rezultatów
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ def waitress_run(_logger):
|
|||||||
_logger.info("Attempt waitress")
|
_logger.info("Attempt waitress")
|
||||||
serve(app, host=HOST_ADDRESS, port=PORT_ADDRESS)
|
serve(app, host=HOST_ADDRESS, port=PORT_ADDRESS)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
def comm_subroutine():
|
||||||
logger = logging.getLogger('conjurer_musician')
|
logger = logging.getLogger('conjurer_musician')
|
||||||
logger.setLevel(logging.DEBUG)
|
logger.setLevel(logging.DEBUG)
|
||||||
logger.info("Started")
|
logger.info("Started")
|
||||||
|
|||||||
Reference in New Issue
Block a user