Finished audio list generator

This commit is contained in:
2022-09-01 15:15:30 +03:00
parent 5b134e6446
commit 3c0851102d
7 changed files with 139 additions and 67 deletions

View File

@@ -10,7 +10,7 @@ async def play_audio(audio, bot, vc):
await sleep(1)
vp = await vc.connect()
if not vp.is_playing():
vp.play(FFmpegPCMAudio(f'audio/{audio}'), after=None)
vp.play(FFmpegPCMAudio(f'{audio}'), after=None)
while vp.is_playing():
await sleep(0.5)
await sleep(1)