Skip to content

dongcodebmt/DiscordYTBot

Repository files navigation

DiscordYTBot

Discord bot to play music

Requirements

  • Docker
  • Docker Compose

Using

  • 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
  • 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

Docs

Send /help to view bot commands

Credits to MisaBot, Discord.JS, DisTube and more

About

Discord bot to play music

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published