Music Player

A music bot written to play the audio from YouTube videos to Discord voice channels!

GitHub

My commands are as follows:


/help - shows this help command
/play <YouTube url> - adds the linked youtube video to the queue or starts playing if queue is empty
/search <query> - searches for a youtube video and then adds to the queue or starts playing if queue is empty
/skip - skips the current song in queue
/stop - stops me playing all together

/blink - Half an Orange - Blink 182 [Monstercat Release]
/countdown - The Final Countdown ยท Europe


How to install

  1. Clone or download the git repo
    $ git clone [email protected]:SamKemp/DiscordBot-MusicPlayer.git
  2. Rename config.example.json to config.json
  3. Open the Discord developer portal and log into your account.
  4. Click on the "New Application" button.
  5. Enter a name and confirm the pop-up window but clicking the "Create" button.
    Here you can edit the applications name, description or avatar
    Most importantly you can copy the Application ID (sometimes referred to as the Client ID), which we'll need in step's 8 and 9
  6. Select the "Bot" tab on the left hand side. Click the "Add Bot" button on the right and confirm the pop-up window by clicking "Yes, do it!".
  7. In this panel, you can give your bot a snazzy avatar and set its username. Most importantly you can copy the Bot Token, which we'll need in step 8
  8. Enter Bot Token, Client ID and Guild ID, as well as any other required info into the config.json
  9. Invite your bot to the desired server
    https://discord.com/api/oauth2/authorize?client_id=123456789012345678&permissions=3145984&scope=bot%20applications.commands
  10. Ensure you have at least Node v16.6.0 installed and run npm install
  11. Finally running node index.js will start the bot