Discord Music Bot
This is a simple DisTube example music bot. (DisTube Support Server)
Dependencies maybe outdated. You should update them yourself!
Please edit the ./config.json
and ./Events/Client/ready.js
file first.
Requirement
- Node.js v16.9.0 or higher
- discord.js v14
- FFmpeg -
npm install ffmpeg-static
- @discordjs/voice -
npm install @discordjs/voice
- sodium or libsodium-wrappers -
npm install sodium
ornpm install libsodium-wrappers
FAQ
-
How do I get YouTube cookie ?
- Navigate to YouTube in a web browser.
- Please login to your YouTube account if needed.
- Open up dev tools (opt+cmd+j on mac).
- Go to the network tab.
- Click on a request on the left.
- Scroll down to "Request Headers".
- Find the "cookie" header and copy its entire contents.
-
How do I get Spotify clientId and clientSecret ?
- Navigate to Spotify Developer Page.
- Please login to your spotify account if needed.
- Create an app.
- Go to the app that you have created.
- There you will get clientId and clientSecret.
-
More on DisTube Support Server.
Config Information
- Token = Secret Token Bot.
- Prefix = Bot Prefix.
- OwnerId = UserId of the Bot Owner.
- Color = Embed Color.
- youtubeCookie = YouTube Cookie.
- clientId = Spotify clientId.
- clientSecret = Spotify clientSecret.
- MusicImg = Embed Image (optional).
Free Discord Bot Hosting
- Heroku
- Replit
- Glitch
- Azure - Free Trial with a $200 credit for 30 days.
- DigitalOcean - Free Trial with a $100 credit for 60 days.
- Google Cloud - Free Trial with a $300 credit for 90 days.
- AWS - Free Tier Amazon EC2 750 hours per month for 12 months.
- Alibaba Cloud - Free Trial ECS for 3 months or 12 months.
For Help
- My Discord Account: Panji Kusuma#7473
- My Discord Server: Gang Sebelah - This is a public discord server but you can find me there.
- Follow and Support Me: https://linktr.ee/1mgr007
- Example Bot: ZER0 DAY
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.