Music
Setting Up Music
We have added music functions for you to make a good use of voice channels. We only support ytdl-core currently but will soon have lavalink support! To start off you need to install these dependencies as music dependencies are not pre-installed to keep the package clean.
Firstly, run this code in the powershell to install ytdl-core
.
npm i ytdl-core ffmpeg yt-search ytfps opusscript
Creating Music Commands
Here is a example of how you would play a song through youtube search query:
bot.command({
type: "command",
name: "play",
code: `$onlyIf[$voiceID!=;Please join a voice channel first!]
$joinVoice[$voiceID]
$playSong[$guildID;$message;search]
$if[$queueLength==1;
Playing now $songInfo[title]!;
Successfully queued $songInfo[title;$queueLength]!
]`
})
Supported Music Functions
$joinVoice
$playSong
$leaveVoice
$queueLength
$songInfo
$skip
$voiceID
$volume
Last updated
Was this helpful?