如何使用Discord.py Rewrite(1.0.0)版本播放音乐

时间:2018-11-11 22:31:26

标签: python discord.py-rewrite

我正在使用discord.py重写来制作一个discord机器人。我知道这些全都写在文档中,但是文档确实令人困惑。我希望有一个机器人连接到我的频道,然后从youtube链接播放音乐。

我目前有这个:

@client.event
async def on_message(message):
    if(message.content == "play playlist"):
        # some code to play link that I have in local file

同样,文档对我来说非常混乱且不清楚。

如果您需要更多信息,请发表评论。

谢谢!

0 个答案:

没有答案