Functionalities
Other
$fileCount
Returns the number of files and folders in the file path. Path always starts with `./` defined as **home**, regardless if a command handler is used.

FUNCTION USAGE

  • $fileCount[./path]

Properties:

./path - Supply the file path. The folder it lands on is the folder it will read.
Can be used to count files in any folder if the file path is correct.
Example 1: Returns the number of files inside the main folder.
1
bot.Command({
2
name: "test",
3
code: `
4
$fileCount[./commands/main]
5
`
6
})
Copied!
Example 2: Returns the number of files inside the utility folder.
1
bot.Command({
2
name: "test",
3
code: `
4
$fileCount[./commands/utility]
5
`
6
})
Copied!
Last modified 5mo ago
Copy link
Contents
Properties: