Discord bot to play music
- Docker
- Docker Compose
- Create a discord app at developer portal
- Setup permissions
- Scopes:
bot
,application.commands
- Bot permissions:
Send Messages
,Embed Links
,Use Slash Commands
,Connect
,Speak
,Manage Messages
- Scopes:
- Clone this repo
- Create .env from example.env
BOT_TOKEN=<token>
BOT_LANG=<en|vi>
- Install EditThisCookie extension for your browser.
- Go to YouTube.
- Click on the extension icon and click "Export" icon.
- Create a json file named
cookies.json
and paste your cookies into the json file. - Build docker image and run
docker compose up -d --build
- Invite the bot to the server, then join a voice channel. Send /deploy to deploy the slash command for bot in the server
Send /help to view bot commands