mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Maybe fix ?
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user