【发布时间】:2021-12-24 01:07:49
【问题描述】:
Discord py mp3文件播放完后如何让bot离开语音频道?
@client.command(pass_context=True)
async def ea(ctx):
if ctx.author.voice:
channel = ctx.message.author.voice.channel
voice = await channel.connect()
source = FFmpegPCMAudio("./mp3/ea.mp3")
player = voice.play(source)
else:
await ctx.send("")
【问题讨论】:
标签: python