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)
- Log into your discord account on the discord developer portal.
- Create a new application.
- Add a bot to your application.
- Copy the Client/Application ID.
- Go to https://discordapp.com/oauth2/authorize?client_id=CLIENT_ID_GOES_HERE&scope=bot&permissions=0
- 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) - 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) - Create a new text file and paste this along with your token instead.
{ "token": "your token in here, keep the quotation marks and brackets." } - Save the text file as "token.json" in the root folder for this application.
- Create another text file and paste this into the file.
node index.js
pause - Then save the text file as "start.bat" in the root folder
- .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