Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @client.command(pass_context=True, aliases=['p', 'pla'])
- async def play(ctx):
- voice = get(client.voice_clients, guild=ctx.guild)
- i = 1
- while i < 3:
- await ctx.send("We are listening now : " + get_name(i))
- voice.play(discord.FFmpegPCMAudio(f"song{i}.mp3"), after=lambda e: print("..."))
- voice.source = discord.PCMVolumeTransformer(voice.source)
- voice.source.volume = 0.05
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement