Modules
moduleCount
$moduleCount
$moduleCount returns how many modules are installed on the bot.
Syntax
$moduleCount[filter]
Parameters
| Parameter | Description |
|---|---|
filter |
Optional. all (default), enabled or configurable, as in $moduleList. |
Return value
- Type: Number (as text)
JavaScript
bc.module.count(filter) returns a number.
Behavior
- Same filters as
$moduleList.
Examples
Modules installed: $moduleCount
Notes
- Everything is read from the modules installed on the bot, so a module added later is covered with no change to your script.
- See the guide Module and command functions.
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.