Discord bot python: discord.errors.ClientException: ffmpeg was not found

后端 未结 1 1097
没有蜡笔的小新
没有蜡笔的小新 2021-02-10 09:03

I\'m trying to make a discord bot that plays music in a voice channel. It connects to the voice channel, but doesn\'t play anything. It also gives an error in the console.

1条回答
  •  醉梦人生
    2021-02-10 09:30

    You can specify the FFmpeg executable directly with the argument executable:

    vc = await channel.connect()
    vc.play(discord.FFmpegPCMAudio(executable="C:/path/ffmpeg.exe", source="mp3.mp3"))
    

    0 讨论(0)
提交回复
热议问题