From 69d9880519f01c3e89f67dc4e7b41258c25a90e3 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 15 Jan 2013 21:14:52 +0000 Subject: [PATCH] update flow info for command --- modules/command/README.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/modules/command/README.md b/modules/command/README.md index d412fd9..6f52a18 100644 --- a/modules/command/README.md +++ b/modules/command/README.md @@ -4,11 +4,18 @@ 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*? +Command flow: + +1. Does the input match a command key in the loaded commands? + * If command not found and quotes is loaded, attempt to print quote of given + command name +2. Is the user banned from running the given command? +3. Is the user ignoring the command? +3. Does the use have the access level to run the command? +4. Is the command set as disabled? +4. Apply regex to the command, pass into event object. + * If regex does not apply, show usage info. +5. Run the command. This is the only module which is force loaded, even if it's not specified in the configuration file.