Skip to content

Chesterrific/DiscordBot

Repository files navigation

DiscordBot

Discord Bot created using Javascript and Node.js.
This bot will search youtube for your given video and play the audio in your current channel
(note that you will need to install node.js for this application to work)

How To Add to server

  1. Log into your discord account on the discord developer portal.
  2. Create a new application.
  3. Add a bot to your application.
  4. Copy the Client/Application ID.
  5. Go to https://discordapp.com/oauth2/authorize?client_id=CLIENT_ID_GOES_HERE&scope=bot&permissions=0
  6. Select server and click authorize.
    (You yourself need to have permission to add bots to the server for it to show up on the list)
  7. Navigate to your application's bot section and copy its token.
    (Keep this private unless you want your bot to be controlled by someone else)
  8. Create a new text file and paste this along with your token instead.
    { "token": "your token in here, keep the quotation marks and brackets." }
  9. Save the text file as "token.json" in the root folder for this application.
  10. Create another text file and paste this into the file.
    node index.js
    pause
  11. Then save the text file as "start.bat" in the root folder
And that should be it. To run the bot you just need discord open, then run start.bat and your bot should come online.

Commands

  • .q song name/youtube title/youtube url
    • Bot will search youtube for your song and add it to the queue
  • .join
    • Bot will join your current discord channel
  • .play
    • Plays song at the start of the queue
  • .leave
    • Bot will leave your channel
  • .ls
    • Lists current songs in queue
  • .n
    • Skips current song
  • .bye
    • Bot goes offline

About

Discord Bot created using Javascript and Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published