This music bot is meant to replace the old rythm bot that went out of service. It has similar features (even more actually!) and can be used to queue up and play youtube videos and playlists.
play
|p
- Searches for a video and adds it to the queue. If the queue is empty the song is playedforceplay
|fp
- Searches for a video and plays it after the current songloop
- Loops the current songloopq
|loopqueue
- The queue will be loopedquit
|leave
- The bot leaves the voice channel and the queue is cleared.skipto
- Skips to the given position in the queueq
|queue
- Shows the queue
- Install the latest node stable release
- run
npm install
or if you are using yarn runyarn
- First make a new
.env
file in the root directory using the template given in the.env.example
file - These are the 4 things you need to configure:
PORT
This is the port the application should run on. A default value is e.g3000
NODE_ENV
Default value should beproduction
. If you are currently developing set it todevelopment
BOT_TOKEN
Your discord Bot Token. Here is a good tutorial on how to get one: https://www.writebots.com/discord-bot-token/YOUTUBE_API_KEY
This is the most complicated part. The youtube api key grants the bot access to the youtube api. Here is another tutorial on how to get one https://blog.hubspot.com/website/how-to-get-youtube-api-key
- In order to build and run the application, use:
npm run serve
- If you only want to build the application, use:
npm run build
- If you only want to run an already build version, use:
npm run start
For a full Code documentation visit https://flosi23.github.io/rythm/