This module provides sophisticated autocompletion capabilities for commands and their parameters. It is meant to be used by other modules to keep a tidy (and conflict free) list of chat commands.
Features
- Global command list with configurable autocompletion
- Core command autocompletion
- Command aliases
- Conflict handling with aliases and namespacing
- Role based command access
- Asynchronous commands
- Autocompletion for registered commands (including asynchronous autocompletion)
- Command hook to react to invocations and modify the resulting message
Core commands
While this module's primary purpose is to provide centralized command handling for other modules, it does implement autocompletion for existing FoundryVTT commands.
Whisper
For the core whisper command, you can type @
to quickly initiate a private message. Autocompleting a user name will insert the full whisper syntax (also respecting spaces in the user's name).
When you then type a comma (,
), you can append additional users. Again, the module will adjust the syntax as needed.
Keep in mind that @
is only a convenience for autocompletion and not a known FoundryVTT command. Pasting something like @GM How are you?
into the chat will not send a private message.
Roll
For rolling dice, the module provides some syntax guidelines. The level of detail depends on the amount of maximum entries in your (per user) configuration.
It also tracks your 5 recent rolls and suggests them proactively. This is independent of the roll mode (e.g. blind or public).
Developing commands
Please check the module's developer documentation for details and examples to add and autocomplete your own commands.