by Mottel Zirkind
This is a simple discord bot that plays audio files. It's built for teaching purposes.
To make this code work you need to do the following. (This is a checklist not a step by step guide.)
- Run
npm install
- Get a token and add the bot to your server using this URL with your client ID instead of "[YOURCLIENTID]"
https://discordapp.com/oauth2/authorize?client_id=[YOURCLIENTID]&scope=bot&permissions=8
- Create a music folder inside the project folder, put an audio file inside, and make sure that line 27 of the index.js is changeed to whatever your audio file name is.