$endsWith
Returns whether the provided text's last argument is 'query'.
Usage
$endsWith[text;query]Param
Description
Type
Required
Examples
bot.commands.add({
type: "basicCommand",
name: "example",
code: `$endsWith[Hello World;World]` //Returns true
})bot.commands.add({
type: "basicCommand",
name: "example",
code: `$endsWith[Hello World;Hello]` //Returns false
})Last updated
Was this helpful?