This function will map every text value in the specified text
This function has 3 required fields
- Text (Required)
- Splitter (Required)
- Awaited Command (Required)
- Separator (Options)
Raw Usage: $map[text;splitter;awaitedCommand;separator (optional)]
- Text - The text where the values are
- Splitter - The separator for each value
- Awaited Command - The awaited command name
- Separator - The separator that separates each value
- {value} - Used in the awaited command to get the value of each mapped element in the array
bot.command({
name: "map",
code: `$map[hi/hello/bye/goodbye;/;mapCmd;,]`
})
bot.awaitedCommand({
name: "mapCmd",
code: `Values: {value}`
})