音乐剧命令播放(bot python discord)

时间:2020-06-15 22:20:44

标签: python audio youtube bots discord

@bot.command()
async def play(ctx, url):
    author = ctx.message.author
    channel = author.voice.channel
    if channel:
        vc = await channel.connect()
        await ctx.send("Bey Game à rejoins le salon vocal !")
    else:
        vc = author.voice.channel
        player = await vc.create_ytdl_player(url)
        player.start()

为什么不投放youtube音乐?

没有错误

0 个答案:

没有答案