-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Before anything, install Node v16 LTS and create a discord bot then add the bot to your server.
In the discord developer dashboard, toggle on:
- PRESENCE INTENT
- SERVER MEMBERS INTENT
- MESSAGE CONTENT INTENT
then
- Download the Zip Archive
- Unzip archive to a directory of your choosing
- Make a copy of config.json.example called config.json in the same directory. Fill in the config.
- If you are not using voice commands, you do not need to fill in the filenames or the keys for it. Just set it to false.
- Open command prompt or terminal in the chosen directory
- Run
npm install
- To start the bot run
node .
ornpm start
- Open terminal in the project directory
- Run the node REPL
node
- Type
require("play-dl").authorize()
and follow the steps
-
play [youtube link OR soundcloud link OR spotify link OR search query]
Gets metadata and adds item to the queue.
-
music [search query]
Searches soundcloud.
-
spotify [mention]
Will play the song the mentioned user is listening to on spotify and continue to do so until interrupted by another command.
-
queue
Shows all items in the queue.
-
remove [index of item]
Remove item from queue.
-
loop
Loops the song playing.
-
skip
Skips the song playing.
-
pause
Pauses the currently playing song
-
unpause / resume
Unpauses the currently playing song
-
join
Joins your voice channel.
-
leave / disconnect
Disconnects from your voice channel and clears the queue.