$loopSong
If the input is defined as `yes`, the function will repeat the currently playing song. If the input is defined as `no` the function will not repeat the currently playing song.

FUNCTION USAGE

  • $loopSong[yes]
  • $loopSong[no]

Properties:

yes - Means the bot will repeat the song when it is finished playing. no - Means the bot will not repeat the song when it is finished playing and the next song in the queue will play.

Example 1: Bot will repeat the currently playing song when it is finished.

1
bot.Command({
2
name: "repeat",
3
code: `
4
$loopSong[yes]
5
`
6
})
Copied!

Example 2: Bot will not repeat the currently playing song when it is finished.

1
bot.Command({
2
name: "cancel-repeat",
3
code: `
4
$loopSong[no]
5
`
6
})
Copied!

Example 3: Bot will act according to the user input in the command.

1
bot.Command({
2
name: "repeat",
3
code: `
4
$loopSong[$message[]]
5
`
6
})
Copied!
Last modified 6mo ago
Copy link
Contents
Properties: