Musically is a Discord Music Bot built with discord.js & uses Command Handler from discordjs.guide
-
How to obtain a Discord Bot Token and invite that bot to your srrver Guide
-
YouTube Data API v3 Key Guide
-
SoundCloud is no more providing APIs so no need of api.**
-
Node.js v12.0.0 or newer
I will prefer to run it on repl. Go to repl.it here.
After Completing all the required installments and the changes head over to Uptime Robot here and login there..Choose the monitor as https
.Then you would need a link..You could get the link in the web section of you project..First time if you dont run the project you could not see that section.Run the project and you could see it.Then paste the link in uptime robot and take any name and click monitor..And your project will be online 24/7..
For PC users using VS Code -
git clone
cd Musically
npm install
After installation finishes you can use node index.js
to start the bot.
Copy or Rename config.json.example
to config.json
and fill out the values:
🚨🚨 Commiting your token to be accessed by others or making it public is strictly prohibited.So, dont share your token in any cost or use .gitignore to hide secrets 🚨🚨
{
"YOUTUBE_API_KEY": "",
"SOUNDCLOUD_CLIENT_ID": "",
"MAX_PLAYLIST_SIZE": 10,
"PREFIX": ">>",
"PRUNING": false,
"STAY_TIME": 30,
"LOCALE": "en",
"support_server": "",
"DEFAULT_VOLUME": 100
}
-
Go to your project in repl
-
Tap on the lock icon at left sidebar
-
Type
token
in the key field -
Type your bot's token in the secret field
-
Tap on
add new secret
-
Go to your root folder of bot code
-
create
.env
file -
Type
TOKEN=YOUR-TOKEN
in the key field -
Replace Your-Toke with yout bot token
-
Save It
Currently available locales are:
• English (en)
• French (fr)
• Spanish (es)
• Turkish (tr)
• Korean (ko)
• Brazilian Portuguese (pt_br)
• Simplified Chinese (zh_cn)
• Traditional Chinese (zh_tw)
Note: The default prefix is '>'
- 🎶 Using YouTube Url
>play https://www.youtube.com/watch?v=wnJ6LuUFpMo
- 🔎 Playing music via Name
>play Let me love you
- 🔎 Search and play
>search NCS Astronomia
Reply with song number or numbers seperated by comma that you wish to play
Examples: 1
or 1,2,3
- 📃 Play a playlist directly from youtube to Discord
>playlist https://www.youtube.com/playlist?list=PLeiP6sSl8XyF7qcJ7WR6FjkpKtNBtzkqe
- 🔎 Play youtube playlists via search query
>playlist NCS Releases
Commands of Our Bot
-
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)
-
Remove song # from queue (>remove, >rm)
-
Toggle pruning of bot messages (>pruning)
-
Help (>help, >h)
-
Command Handler from discordjs.guide
-
Controls your Discord Bot via Reactions