There are two ways to deploy this bot, cloning the repo or with Docker. I recommend installing on Linux or using the Docker method since the sodium NPM package is hard to get installed on Windows.
You first need to create a bot on the Discord developer portal.
- Log in to the developer portal with your discord account
- Click on
New Application
in the top right - Give your app a name (this is not your bot's name) and click create
- Go to the
OAuth2
tab on the left, the click onURL Generator
- Select
bot
andapplication.commands
- Scroll down and select
Administrator
- (OPTIONAL) If you don't want to give the bot admin permissions, you need to select the following options:
Send Messages
,Send Messages in Threads
,Embed Links
,Attach Files
,Add Reactions
,Connect
,Speak
andUse Voice Activity
- Scroll to the bottom and copy the generated URL
- Paste it into a new tab and invite the bot to the server you want
- Go back to the developer portal and click on the
Bot
tab on the left - Click
Reset Token
and copy it, you will be needing it later - Select an install method and follow the instructions (recommended: Docker)
- Make sure that Docker is installed on your system by running
docker -v
- Set the
DC_TOKEN
enviornment variable to your token - If you are running for the first time you should set the
DC_REGISTER
enviornment variable to 1 to register the slash commands - Run the command and enjoy 😎
docker run -d --env DC_TOKEN=<Your token here> --env DC_REGISTER=1 ghcr.io/varma02/generic-music-bot3:latest
- Clone the repository on your system
git clone https://github.com/varma02/GenericMusicBot3.git
- Build the Docker image (you have to be in the cloned directory)
docker build -t mybot .
- Create and run the container (replace the token with yours)
docker run -d --env DC_TOKEN=<Your token here> --env DC_REGISTER=1 mybot
- Install Node 19 or above (recommended via Node Version Manager)
- Install yt-dlp and ffmpeg
Debian/Ubuntu:
sudo apt update
sudo apt install python3 ffmpeg
CentOS/RHEL/Fedora:
sudo dnf install python3 ffmpeg
python3 -m pip install -U yt-dlp
- Clone the repository on your system
git clone https://github.com/varma02/GenericMusicBot3.git
- Create a
.env
and add your token - Run
npm install
to install dependencies - Run
npm start
GenericMusicBot3 © 2023 by Váradi Marcell (varma02@Github) is licensed under CC BY-NC-SA 4.0