finishising play func
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
import logging
|
||||
import random
|
||||
from asyncio import sleep
|
||||
|
||||
from disnake import FFmpegPCMAudio
|
||||
|
||||
|
||||
async def play_audio(audio, bot, vc):
|
||||
async def play_audio(full_audio, bot, vc):
|
||||
if not bot.voice_clients:
|
||||
audio = random.choice(full_audio)
|
||||
logging.error(f'Playing: {audio}')
|
||||
await sleep(1)
|
||||
vp = await vc.connect()
|
||||
if not vp.is_playing():
|
||||
|
||||
Reference in New Issue
Block a user