📜  播放列表 discordpy - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:23.154000             🧑  作者: Mango

代码示例1
if 'entries' in info:
                for i in info['entries']:
                    URL = i['formats'][0]['url']     
                    player = FFmpegPCMAudio(URL, **FFMPEG_OPTIONS)
                    queue.append(player)
                    source = queue.pop(0)
                    voice.play(player, after = lambda e: play_next(ctx, source))            
                    await ctx.send('playing song')