mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
UPdate for music tracker
This commit is contained in:
@@ -47,6 +47,7 @@ from communication_subroutine import (
|
||||
OUT_COMM_Q,
|
||||
QueryControl,
|
||||
comm_subroutine,
|
||||
PREPPED_TRACKS,
|
||||
)
|
||||
from spotify_dl import spotify
|
||||
from spotify_dl import youtube as youtube_download
|
||||
@@ -2524,6 +2525,25 @@ async def krecimy_pornola(ctx):
|
||||
else:
|
||||
ctx.reply("Jak ładnie szefa poprosisz.")
|
||||
|
||||
@client.hybrid_command(
|
||||
name="co_na_plejliscie_wariacie",
|
||||
description="Wyswietl kawalki ktore sa na pocztku list radia",
|
||||
guild=discord.Object(id=664789470779932693),
|
||||
)
|
||||
async def co_na_plejliscie_wariacie(ctx):
|
||||
"""
|
||||
Download a music number from youtube.
|
||||
|
||||
:param ctx: ctx stands for "context" and is a parameter commonly used in Discord.py commands. It
|
||||
represents the context in which the command was invoked, including information such as the message,
|
||||
the channel, the server, and the user who invoked the command. It allows the command to interact
|
||||
with the Discord API and
|
||||
"""
|
||||
await ctx.send("Dej mnie chwilkę")
|
||||
async with ctx.typing:
|
||||
logger.info("plejlista")
|
||||
logger.info(PREPPED_TRACKS)
|
||||
await ctx.send(f"Didżej Hammer i jego sztuczna inteligencja (||he he||) prezentują - na liście priorytetowej {PREPPED_TRACKS["priority"]}, na liście hitów obecnie czeka kawałek {PREPPED_TRACKS["hit"]}, na liście wszystkich kawałków {PREPPED_TRACKS["all"]} zaś najświeższym zamówieniem od słuchaczy jest {PREPPED_TRACKS["requests"]}. Z kolei jingiel to: {PREPPED_TRACKS["jingles"]}")
|
||||
|
||||
# *================================== Run
|
||||
if __name__ == "__main__":
|
||||
@@ -2531,7 +2551,7 @@ if __name__ == "__main__":
|
||||
threads = []
|
||||
logger.info("Starting discord bot: Creating 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))
|
||||
logger.info("Starting discord bot: Starting threads")
|
||||
WRK_CNT = 0
|
||||
for worker in threads:
|
||||
|
||||
Reference in New Issue
Block a user