gpt4 book ai didi

python - 我得到一个 ClientException : ffmpeg not found error when in discord. py

转载 作者:行者123 更新时间:2023-12-04 23:34:23 24 4
gpt4 key购买 nike

这是异常(exception):ClientException:找不到ffmpeg。
该机器人托管在 replit 中,一直运行良好,这是一个新事物。
我必须做什么?

async def play_music(self, ctx):
vc = discord.utils.get(self.bot.voice_clients, guild=ctx.guild)
self.now_playing = self.music_queue[0][0]['title']
self.now_playing_url = self.music_queue[0][0]['url']
m_url = self.music_queue[0][0]['source']

# try to connect to voice channel if you are not already connected
try:
vc = await self.music_queue[0][1].connect()
except discord.errors.ClientException:
await vc.move_to(self.music_queue[0][1])
print(self.music_queue)

vc.play(discord.FFmpegPCMAudio(m_url, **self.ffmpeg_options), after=lambda e: self.play_next(ctx))
# remove the first element as you are currently playing it
self.music_queue.pop(0)

最佳答案

试试看这个它可能会解决你的问题
https://repl.it/talk/learn/OPUS-SUPPORT-FOR-DISCORD-MUSIC-BOTS/37015

关于python - 我得到一个 ClientException : ffmpeg not found error when in discord. py,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71136413/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com