$checkChars
Returns `true` if the fields after the first, contain any characters or words in the first field. Returns `false` if the fields after the first, does not contain the content in the first field.

FUNCTION USAGE

  • $checkChars[content;check]
  • $checkChars[content;check;check;check;etc....]

Properties:

content - The text being checked. check - The characters or words to check for in the first field. Multiple fields after the 1st can be used to check.

Example 1: Returns true.

1
bot.Command({
2
name: "check",
3
code: `
4
$checkChars[testing;te]
5
`
6
})
Copied!

Example 2: Returnstrue.

1
bot.Command({
2
name: "check",
3
code: `
4
$checkChars[testing;testing]
5
`
6
})
Copied!

Example 3: Returnstrue.

1
bot.Command({
2
name: "check",
3
code: `
4
$checkChars[testing;abc;test]
5
`
6
})
Copied!

Example 4: Returnsfalse.

1
bot.Command({
2
name: "check",
3
code: `
4
$checkChars[testing;abc]
5
`
6
})
Copied!
Last modified 5mo ago
Copy link
Contents
Properties: