$play
Plays a song via YouTube link. If 2nd field is not defined, bot will automatically disconnect from the voice channel when all audio is finished playing and the queue is empty.

FUNCTION USAGE

  • $play[link]
  • $play[link;yes]
  • $play[link;no]

Properties:

link - Supply a valid YouTube link for the bot to play as audio. yes - Means the bot will disconnect from the voice channel when bot is finished playing music. no - Means the bot will remain in the voice channel when bot is finished playing music.

Example 1: Bot will play the audio and when it is done, the bot will disconnect from the voice channel.

1
bot.Command({
2
name: "play",
3
code: `
4
$play[https://www.youtube.com/watch?v=VZik9C3Zceg]
5
`
6
})
Copied!

Example 2: Bot will play the audio and when it is done, the bot will disconnect from the voice channel.

1
bot.Command({
2
name: "play",
3
code: `
4
$play[https://www.youtube.com/watch?v=VZik9C3Zceg;yes]
5
`
6
})
Copied!

Example 3: Bot will play the audio and when it is done, the bot will remain in the voice channel.

1
bot.Command({
2
name: "play",
3
code: `
4
$play[https://www.youtube.com/watch?v=VZik9C3Zceg;no]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: