edditing code

This commit is contained in:
2022-08-23 20:44:19 +03:00
parent 10990a86a4
commit 8ac74ccd44
9 changed files with 133 additions and 53 deletions

View File

@@ -1,13 +1,12 @@
import logging
import random
from asyncio import sleep
from disnake import FFmpegPCMAudio
async def play_audio(full_audio, bot, vc):
async def play_audio(audio, bot, vc):
if not bot.voice_clients:
audio = random.choice(full_audio)
logging.info(audio)
logging.error(f'Playing: {audio}')
await sleep(1)
vp = await vc.connect()