$charCount
$charCount will count the given characters in a text and return the amount of characters.
Usage
$charCount[text;find?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| text | string | The text that will be the character count returned of. | true |
| find? | string | The characters it will search for. | false |
Example(s)
This will return 77 as there are 77 characters in this text:
1client.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:
1client.command({2 name: "charCount",3 code: `4 $charCount[Hello, aoi.js is great!;e]5 `6});