Please see with ChildCount+ for information on what forms and commands are.
Module defining ChildCount+ command object.
CCCommand is the abstract base class used to define new SMS commands.
Command definitions should inherit from CCCommand, should define KEYWORDS and should implement the self.process method.
Load command data.
Parameters: |
|
---|
A dictionary of two-character language codes to a list of keyword names for this command. For example the command “FAMILY” might have a KEYWORDS that looks like:
KEYWORDS = {
'en': ['family', 'fam'],
'fr': ['famille', 'fam'],
}
The rapidsms.Message object that is being processed by this command.
A list of parameters to this command – like the sys.argv for a python script.
There are a variety of commands already defined in apps/childcount/commands. Consult them before writing a new command.