$endsWith
Returns `true` if the content in the 1st field ends with what's in the 2nd field. Otherwise, bot returns `false`.

FUNCTION USAGE

  • $endsWith[content;endsWith]

Properties:

content - The content being checked for. endsWith - The letters that the 1st field is being checked for containment.
Example 1: Multiple check statements.
1
bot.Command({
2
name: "check",
3
code: `
4
$endsWith[im just a test, hello;he] // Returns true
5
$endsWith[im just a test, hello;hel] // Returns true
6
$endsWith[im just a test, hello;hello] // Returns true
7
$endsWith[im just a test, hello;facts] // Returns false
8
`
9
})
Copied!
Last modified 11mo ago
Copy link
Contents
Properties: