mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Tmp chng
This commit is contained in:
@@ -1584,7 +1584,7 @@ async def graj_muzyko(ctx):
|
||||
|
||||
@client.hybrid_command(
|
||||
name="radio_hardkor",
|
||||
description="Włącza muzykę na kanale #nocna-zmiana.",
|
||||
description="Włącza radio Conjurer na kanale #nocna-zmiana.",
|
||||
guild=discord.Object(id=664789470779932693),
|
||||
)
|
||||
async def radio_hardkor(ctx):
|
||||
|
||||
@@ -13,6 +13,8 @@ s1 = replaygain(playlist(reload_mode="watch", "/home/pi/Conjurer/all_playlist.pl
|
||||
s2 = replaygain(playlist(reload_mode="watch", "/home/pi/Conjurer/priority_queue.playlist"))
|
||||
s3 = replaygain(playlist(reload_mode="watch", "/home/pi/Conjurer/hit.playlist"))
|
||||
|
||||
requests_queue = request.queue()
|
||||
|
||||
# Randomly select a playlist with weights
|
||||
s = random(id="randomizer", weights=[1, 3, 2], [s1, s2, s3])
|
||||
|
||||
@@ -53,7 +55,7 @@ set("log.file.path", logpath)
|
||||
emergency = single("/home/pi/RetroPie/mp3/Youtube/Dr. Peacock - Trip to Ireland [GvrvQTUbUcA].mp3")
|
||||
|
||||
# Create a fallback stream with the main stream and emergency track
|
||||
radio = fallback(id="switcher", track_sensitive=false, [s, emergency])
|
||||
radio = fallback(id="switcher", track_sensitive=false, [requests_queue, s, emergency])
|
||||
|
||||
# Handle metadata events
|
||||
handle_metadata = fun (m) -> begin
|
||||
|
||||
@@ -15,6 +15,7 @@ touch /home/pi/Conjurer/prio_playlist.json
|
||||
touch /home/pi/Conjurer/all_playlist.playlist
|
||||
touch /home/pi/Conjurer/priority_queue.playlist
|
||||
touch /home/pi/Conjurer/hit.playlist
|
||||
touch /home/pi/Conjurer/request.playlist
|
||||
|
||||
touch /home/pi/Conjurer/radio_log.log
|
||||
./env/bin/python3 -m pip install --upgrade pip
|
||||
|
||||
Reference in New Issue
Block a user