Finished audio list generator
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user