def play(self, ctx):
"""Play a youtube video"""
voice_channel = None
if not ctx.author.voice is None:
voice_channel = ctx.author.voice.channel
if not voice_channel is None:
vc = await voice_channel.connect()
vc.play(discord.FFmpegPCMAudio('data/music/tmp/CSvFpBOe8eY.m4a'))
评论列表
文章目录