initial yandex music

This commit is contained in:
bacon
2024-03-09 11:47:06 +03:00
parent be76027581
commit 805dc7c71e
5 changed files with 20 additions and 15 deletions

View File

@@ -5,9 +5,7 @@ from disnake import FFmpegOpusAudio
async def play_audio(audio, bot, vc):
if not bot.voice_clients:
# logger.info(audio)
logger.error(f'Playing: {audio}')
await sleep(1)
vp = await vc.connect()
if not vp.is_playing():
vp.play(FFmpegOpusAudio(f'{audio}'))