v5.0.0
$textSplitMap
Creates a loop over all the indexes of $textSplit
This function creates a loop over all the values in $textSplit
1
$textSplitMap[awaitedCommand]
Copied!
1
bot.command({
2
name: "loop",
3
code: `
4
$textSplitMap[example]
5
$textSplit[hi/hello/bye/goodbye;/]
6
`
7
})
8
//TIP: To get the textSplit value itself, use $message[1]
9
​
10
bot.awaitedCommand({
11
name: "example",
12
code: `
13
Value => $message[1]
14
`
15
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub