code cleanup

This commit is contained in:
bacon
2024-03-08 11:50:31 +03:00
parent 3cea8ca2a9
commit 961b260887
6 changed files with 19 additions and 73 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(FFmpegOpusAudio(f'{audio}'), after=lambda e: print('done', e))
vp.play(FFmpegOpusAudio(f'{audio}'))
while vp.is_playing():
await sleep(0.5)
await sleep(1)