Skip to content

$charCount

$charCount will count the given characters in a text and return the amount of characters.

Usage

$charCount[text;find?]

Parameters

FieldTypeDescriptionRequired
textstringThe text that will be the character count returned of.true
find?stringThe characters it will search for.false

Example(s)

This will return 77 as there are 77 characters in this text:

1
client.command({
2
name: "charCount",
3
code: `
4
$charCount[aoi.js is one of the simplest and easiest ways to create your own Discord Bot]
5
`
6
});

This will search for the word matching ā€œeā€, and return 2 as the character occurs two times in total:

1
client.command({
2
name: "charCount",
3
code: `
4
$charCount[Hello, aoi.js is great!;e]
5
`
6
});