PoS Music is a simple bot made in discord.js
, I have made this one to be easily hosted through Replit, and it working 2022!
And PLEASE add this bot to tour server and vote us!
- Discord Bot Token Guide
- YouTube Data API v3 Key Guide
2.1 (Optional) Soundcloud Client ID Guide - Node.js v12.0.0 or newer
If you are going to be Hosting through repl.it
then follow these steps!
- Go to replit website and log in or sing up
- After login, go to home page and click on "+ Create"
- Then Select "Import from GitHub"
- Go to PoS Music GitHub page, click "Code" and copy the link
- Go back to replit and paste the link in to description column
- And then push this blue button!
- After the replit system cloned, you should see this page
- Go to .replit window and make sure description of "Configure the Run Command" is "
node index.js
", then click "Done"
- Go to the
config.json
file, then add the token and API key
{
"TOKEN": "YOUR TOKEN HERE",
"YOUTUBE_API_KEY": "YT API KEY HERE",
"SOUNDCLOUD_CLIENT_ID": "(Options)Soundcloud Client ID Here",
"MAX_PLAYLIST_SIZE": 100,
"PREFIX": "ub!",
"PRUNING": false,
"STAY_TIME": 30,
"DEFAULT_VOLUME": 100
}
- Go to shell and enter
npm i
then WAIT!
- After a long wait, we can finally run the music bot!
- "Run"
- Your bot is running now!
- But now we are going to host it 24/7 Go to UptimeRobot website and Log In or Register for FREE
- Go to dashboard and click "+ Add New Monitor"
- Go back to replit and copy your link
- Back to UptimeRobot and make your settings like this
- After creating a monitor, UptimeRobot would come and wake your website every 5 minitues. Which would make your repl hosted 24/7
Enjoy your bot!
Note: The default prefix is 'ub!'
- 🎶 Play music from YouTube via url
ub!play https://www.youtube.com/watch?v=vQ3XgMKAgxc
- 🔎 Play music from YouTube via search query
ub!play Avicii - Lonely Together
- 🎶 Play music from Soundcloud via url
ub!play https://soundcloud.com/aviciiofficial/lonely-together-acoustic-feat?utm_source=clipboard&utm_medium=text&utm_campaign=social_sharing
- 🔎 Search and select music to play
ub!search Lonely Together
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
ub!playlist https://www.youtube.com/watch?v=YlUKcNNmywk&list=PL5RNCwK3GIO13SR_o57bGJCEmqFAwq82c
- 🔎 Play youtube playlists via search query
ub!playlist linkin park meteora
- Now Playing (ub!nowplaying, ub!np)
- Queue system (ub!queue, ub!q)
- Loop / Repeat (ub!loop)
- Shuffle (ub!shuffle)
- Volume control (ub!volume, ub!v)
- Lyrics (ub!lyrics, ub!ly)
- Pause (ub!pause)
- Resume (ub!resume, ub!r)
- Skip (ub!skip, ub!s)
- Skip to song # in queue (ub!skipto, ub!st)
- Remove song # from queue (ub!remove, ub!rm)
- Toggle pruning of bot messages (ub!pruning)
- Disconnect (ub!disconnect, ub!dc)
- Help Center (ub!help, ub!h)
- And much more!
- Command Handler from discordjs.guide
- Media Controls via Reactions
Feel Free to fork this repo and make changes! :D Also you can contribute or fix issues if any Just git-pull after making changes, your help is greatly appreciated
You can join my discord server ℙ𝕦𝕣𝕤𝕦𝕚𝕥 𝕠𝕗 𝕊𝕡𝕖𝕖𝕕!