【发布时间】:2018-05-17 21:14:53
【问题描述】:
嘿,我想知道是否可以在不做任何特别的事情的情况下播放 youtube 音频。这是我的代码:
if message.content.upper().startswith('!PLAY'):
args = message.content.split(" ")
url = args[1]
author = message.author
voice_channel = author.voice_channel
vc = await Client.join_voice_channel(voice_channel)
player = await vc.create_ytdl_player(url)
player.Start()
我认为这已经足够了,但我想如果可能的话,没有人有一些关于如何做到这一点的提示吗?
【问题讨论】:
标签: python audio youtube bots discord