Maybe fix ?

This commit is contained in:
2024-04-23 12:27:02 +02:00
parent 897a9c1313
commit 14693d9015
+1 -3
View File
@@ -1593,16 +1593,14 @@ async def radio_hardkor(ctx):
global MUZYKA # pylint: disable=global-variable-not-assigned
MUZYKA["ctx"] = ctx
await connect(ctx=ctx)
logger.info("Press play on radio completed")
voice_client = client.voice_clients[0]
if not client.voice_clients:
voice_client = client.voice_clients[0]
await connect(ctx)
voice_client.play(
discord.PCMVolumeTransformer(
discord.FFmpegPCMAudio("http://95.175.16.246:666/mp3-stream"), volume=0.3
)
)
logger.info("Press play on radio completed")
#await asyncio.sleep(2)
#check_music.start()