首页 > 解决方案 > 如何使用 Discord.py Rewrite (1.0.0) 版本播放音乐

问题描述

我正在使用 discord.py rewrite 来制作一个不和谐的机器人。我知道这一切都写在文档中,但是文档真的很混乱。我想要一个机器人连接到我的频道,然后从 youtube 链接播放音乐。

我目前有这个:

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

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

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

谢谢!

标签: pythondiscord.py-rewrite

解决方案


推荐阅读