Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. @client.command(pass_context=True, aliases=['p', 'pla'])
  2. async def play(ctx):
  3.     voice = get(client.voice_clients, guild=ctx.guild)
  4.     i = 1
  5.     while i < 3:
  6.         await ctx.send("We are listening now : " + get_name(i))
  7.         voice.play(discord.FFmpegPCMAudio(f"song{i}.mp3"), after=lambda e: print("..."))
  8.         voice.source = discord.PCMVolumeTransformer(voice.source)
  9.         voice.source.volume = 0.05
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement