$loopQueue
If the input is defined as `yes`, the function will repeat the queue when all songs are finished playing. If the input is defined as `no` the function will not repeat the queue.

FUNCTION USAGE

  • $loopQueue[yes]
  • $loopQueue[no]

Properties:

yes - Means the bot will repeat the queue when it is finished playing. no - Means the bot will not repeat the queue when it is finished playing.

Example 1: Bot will repeat the queue when it is finished.

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

Example 2: Bot will not repeat the queue when it is finished.

1
bot.Command({
2
name: "cancel-repeat",
3
code: `
4
$loopQueue[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
$loopQueue[$message[]]
5
`
6
})
Copied!
Last modified 7mo ago
Copy link
Contents
Properties: