A simple music bot for discord with soundcloud and youtube functionality. Spotify support coming soon. Supports auth on soundcloud to play restricted content.
Overall this project will be a WIP most of the time
- Install neccessary dependencies
- Node v20+
- ffmpeg
- Python 3.12+
- build-essential which includes various tools like make needed for sodium-native to run
- If on linux/WSL2
sudo apt install build-essential
- If on OSX install xcode and then CLI tools
xcode-select --install
- If on windows... good luck (joking, but im not sure what is needed as i just use WSL2, maybe visual studio?)
- If on linux/WSL2
- Create a .env file with the following information
DISCORD_TOKEN=
You can obtain your discord token from the discord developer portal. The bot will need all intents and voice/message permissions. You can also add the bot to your server through the dev dashboard
-
Enable corpack, pnpm, and install dependencies
corpack enable
corpack use pnpm
pnpm install
-
Run the server
pnpm start
Note: you can also use pm2 to start the server automatically and run headless.
You can connect to SoundCloud with your client ID and oauth token allowing the bot to play otherwise restricted content. To learn how to get these values click here. Once obtained simply run the /authsoundcloud
command and provide the IDs in the options