v5.0.0
$forEachUser
Loop over every cached user executing an awaited command
This function creates a loop for every user

Fields

This function has 1 required field
  1. 1.
    Awaited Command (Required)
  2. 2.
    Awaited Command 2 (Optional)
  3. 3.
    Etc
Raw Usage: $forEachUser[awaitedCommand1;awaitedCommand2;...]

Options

  • Awaited Command(s) - The awaited command(s) we're executing

Usage

1
bot.command({
2
name: "forEachUser",
3
code: "$forEachUser[loop5]"
4
})
5
​
6
bot.awaitedCommand({
7
name: "loop5",
8
code: `$setGlobalUserVar[hello;bye]` //Every users value for 'hello' will be 'bye'
9
​
10
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub