$indexOf
Returns the character index of a 'query' within 'text'.
Usage
$indexOf[text;query]Param
Description
Type
Required
Examples
bot.commands.add({
type: "basicCommand",
name: "example",
code: `$indexOf[hi hello hey;hey]` //Returns 10
})bot.commands.add({
type: "basicCommand",
name: "example",
code: `$indexOf[DBD.TS is cool.;is]` //Returns 8
})Last updated
Was this helpful?