mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-18 15:52:10 +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
|
global MUZYKA # pylint: disable=global-variable-not-assigned
|
||||||
MUZYKA["ctx"] = ctx
|
MUZYKA["ctx"] = ctx
|
||||||
await connect(ctx=ctx)
|
await connect(ctx=ctx)
|
||||||
logger.info("Press play on radio completed")
|
|
||||||
voice_client = client.voice_clients[0]
|
|
||||||
if not client.voice_clients:
|
if not client.voice_clients:
|
||||||
voice_client = client.voice_clients[0]
|
voice_client = client.voice_clients[0]
|
||||||
await connect(ctx)
|
|
||||||
voice_client.play(
|
voice_client.play(
|
||||||
discord.PCMVolumeTransformer(
|
discord.PCMVolumeTransformer(
|
||||||
discord.FFmpegPCMAudio("http://95.175.16.246:666/mp3-stream"), volume=0.3
|
discord.FFmpegPCMAudio("http://95.175.16.246:666/mp3-stream"), volume=0.3
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
logger.info("Press play on radio completed")
|
||||||
#await asyncio.sleep(2)
|
#await asyncio.sleep(2)
|
||||||
#check_music.start()
|
#check_music.start()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user