QBot is a Discord Music Bot built with discord.js & uses Command Handler from discordjs.guide
- Discord Bot Token Guide
- Node.js v14.0.0 or newer
git clone [email protected]:Unnil/qbot.git
cd qbot
npm i
After installation finishes follow configuration instructions then run npm run start
to start the bot.
Copy or Rename config.json.example
to config.json
and fill out the values:
{
"TOKENS": [""],
"REDIS_URL": "",
"SOUNDCLOUD_CLIENT_ID": "",
"SPOTIFY_CLIENT_ID": "",
"SPOTIFY_SECRET_ID": "",
"MAX_PLAYLIST_SIZE": 50,
"PREFIX": "/",
"PRUNING": false,
"LOCALE": "en",
"DEFAULT_VOLUME": 10,
"STAY_TIME": 30
}
Note: The default prefix is '/'
- ๐ถ Play music from YouTube via url
/play https://www.youtube.com/watch?v=GLvohMXgcBo
- ๐ Play music from YouTube via search query
/play under the bridge red hot chili peppers
- ๐ถ Play music from Spotify via url
/play https://open.spotify.com/playlist/37i9dQZF1EIY5o2jtmm5PI?si=f66aba8d9ff74c11
- ๐ Search and select music to play
/search Pearl Jam
Reply with song number or numbers seperated by comma that you wish to play
Examples: 1
or 1,2,3
- ๐ Play youtube playlists via url
/playlist https://www.youtube.com/watch?v=YlUKcNNmywk&list=PL5RNCwK3GIO13SR_o57bGJCEmqFAwq82c
- ๐ Play youtube playlists via search query
/playlist linkin park meteora
- Now Playing (/np)
- Queue system (/queue, /q)
- Loop / Repeat (/loop)
- Shuffle (/shuffle)
- Volume control (/volume, /v)
- Lyrics (/lyrics, /ly)
- Pause (/pause)
- Resume (/resume, /r)
- Skip (/skip, /s)
- Skip to song # in queue (/skipto, /st)
- Move a song in the queue (/move, /mv)
- Remove song # from queue (/remove, /rm)
- Play an mp3 clip (/clip song.mp3) (put the file in sounds folder)
- List all clips (/clips)
- Show ping to Discord API (/ping)
- Show bot uptime (/uptime)
- Toggle pruning of bot messages (/pruning)
- Help (/help, /h)
- Command Handler from discordjs.guide
- Media Controls via Reactions
Currently available locales are:
- English (en)
- Spanish (es)
- Fork the repository
- Clone your fork:
git clone https://github.com/your-username/evobot.git
- Create your feature branch:
git checkout -b my-new-feature
- Stage changes
git add .
- Commit your changes:
cz
ORnpm run commit
do not usegit commit
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
@iCrawl For the queue system used in this application which was adapted from @iCrawl/discord-music-bot @eritislami For generate the first version