title: How do I make my discord bot play audio from YouTube
body: <p>So, my question is how do I set the variable url to be what someone types after yt? For example, <code>!yt [youtbube link] makes url = [youtube link]</code></p>
  
  <p>This is my code at the moment and any help is appreciated</p>
  
  <pre><code>@client.command(pass_context=True)
  async def yt(ctx):
      url = 'https://www.youtube.com/watch?v=rPOUewuNKFE'
  
      author = ctx.message.author
      voice_channel = author.voice_channel
      vc = await client.join_voice_channel(voice_channel)
  
      player = await vc.create_ytdl_player(url)
      player.start()
  </code></pre>