Part of otfbot.services.control View Source View In Hierarchy
this class only does the work, you need another class, most suitable is a bot-module, to have a userinterface
Method | __init__ | Undocumented |
Method | register_command | Add a command to the control service |
Method | handle_command | parse the commandstring and handle the command |
Method | help | get help information for arguments *args (parsed strings from a command, i.e. "ircClient", "disconnect") |
Method | getlog | get the n most recent loglines, of specify an offset to get earlier lines |
Method | _exec | execute function f with *args or return a usage info if the arguments were wrong (too much/too little) |
Method | _get_usage | get a usage info for function f |
Method | _cmd_config | Undocumented |
Method | _cmd_config_reload | Undocumented |
Method | _cmd_config_set | set a configvalue. |
Method | _cmd_config_get | get a configvalue |
Inherited from MultiService:
Method | privilegedStartService | Do preparation work for starting the service. |
Method | startService | Start the service. |
Method | stopService | Stop the service. |
Method | getServiceNamed | Get the child service with a given name. |
Method | __iter__ | Get an iterator over all child services. |
Method | addService | Add a child service. |
Method | removeService | Remove a child service. |
Inherited from Service (via MultiService):
Method | __getstate__ | Undocumented |
Method | setName | Set the name of the service. |
Method | setServiceParent | Set the parent of the service. |
Method | disownServiceParent | Use this API to remove an IService
from an IServiceCollection . |
Parameters | f | the callable to be called, when the command is issued (type: callable ) |
the string is parsed into commands, and they are searched in the commandList-tree the function returns an answerstring or that the command was ambigious