dbot/modules/command
reality 921da917a4 Command hooks [#86]
* 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
2013-01-15 17:23:14 +00:00
..
api.js Command hooks [#86] 2013-01-15 17:23:14 +00:00
command.js Command hooks [#86] 2013-01-15 17:23:14 +00:00
commands.js Much better! [#131] 2013-01-14 16:24:38 +00:00
config.json remove useless crap from modules [#136] 2013-01-15 16:54:51 +00:00
README.md add readme files for command and quotes [#75] 2012-12-29 23:05:16 +00:00
strings.json Help links added to config [#89] 2012-12-30 20:30:49 +00:00

Command

Handles the command execution logic for DBot.

Description

  1. Does the input match a command key in dbot.commands ?
  2. Is there a quote category which matches the first part of the input (~category)?
  3. 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 its not specified in the configuration file.