$containsCheck
Returns `true` if the content in the 1st field contains the option value defined in the 2nd field. Otherwise, bot returns `false`. Returns `undefined` if either field is undefined.

FUNCTION USAGE

  • $conatinsCheck[content;option]

Properties:

content - The content to check through. option - An option that checks the content with.

Options:

  • letters
  • numbers
  • symbols

Example 1: Checking for letters.

1
bot.Command({
2
name: "test",
3
code: `
4
$containsCheck[test;letters] //true
5
$containsCheck[test;numbers] //false
6
$containsCheck[test;symbols] //false
7
`
8
})
Copied!

Example 2: Checking for numbers.

1
bot.Command({
2
name: "test",
3
code: `
4
$containsCheck[123;letters] //false
5
$containsCheck[123;numbers] //true
6
$containsCheck[123;symbols] //false
7
`
8
})
Copied!

Example 3: Checking for symbols.

1
bot.Command({
2
name: "test",
3
code: `
4
$containsCheck[$%&;letters] //false
5
$containsCheck[$%&;numbers] //false
6
$containsCheck[$%&;symbols] //true
7
`
8
})
Copied!

Last modified 5mo ago
Copy link