$allVars
Returns the names and/or values of all the variables in the bot.

FUNCTION USAGE

    $allVars
    $allVars[]
    $allVars[names]
    $allVars[values]
    $allVars[both]

Property:

    [] - Leaving blank returns all the variable names and values. Same as no brackets.
    names - The names of all the variables in the bot. values - The values of all the variables in the bot. both - Both the names and values of all the variables in the bot.

Example 1: Returns both the names and values.

1
bot.Command({
2
name: "vars",
3
code: `
4
$allVars
5
`
6
})
Copied!

Example 2: Returns all the names.

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

Example 3: Returns all the values.

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

Example 4: Returns both the names and values. Same as no brackets.

1
bot.Command({
2
name: "vars",
3
code: `
4
$allVars[both]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link