title: How To Make Discord Bot Play YouTube URL
body: <p>I'm new to this and I wonder if there's a way I can make my bot play specific YouTube URL
  so when I type s1 the bot join the room and play that URL</p>
  <pre><code> if (message.content == &quot;s1&quot;) {
       if (!message.member.voice.channel) return message.reply(&quot;You have to be in a VoiceChannel&quot;);
       message.member.voice.channel.join().then(VoiceConnection =&gt; {
           VoiceConnection.play(&quot;https://youtu.be/~~~~&quot;).on(&quot;finish&quot;, () =&gt; 
           VoiceConnection.disconnect());
           message.reply(&quot;done&quot;);
       }).catch(e =&gt; console.log(e))
   };
  </code></pre>