forked from GitHub/dbot
921da917a4
* Command API function to addHook(command, callback) * Commands open to callbacks must return information or indicate failed completion by return false * Hooks to be added in module onLoad * Command loop checks for available hooks and return state, then applies with module scope. * onLoad running moved to end of all module loading to facilitate this without order problems * Added example for ~qadd dent |
||
---|---|---|
.. | ||
api.js | ||
command.js | ||
commands.js | ||
config.json | ||
README.md | ||
strings.json |
Command
Handles the command execution logic for DBot.
Description
- Does the input match a command key in dbot.commands ?
- Is there a quote category which matches the first part of the input (~category)?
- Is there a command name similar to to the first part of the input (~name) in dbot.commands?
This is the only module which is force loaded, even if it’s not specified in the configuration file.