class documentation
class botService(service.MultiService): (source)
allows to control the behaviour of the bot during runtime
this class only does the work, you need another class, most suitable is a bot-module, to have a userinterface
Method | __init__ |
Undocumented |
Method | getlog |
get the n most recent loglines, of specify an offset to get earlier lines |
Method | handle |
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 | register |
Add a command to the control service |
Class Variable | command |
Undocumented |
Class Variable | command |
Undocumented |
Class Variable | name |
Undocumented |
Instance Variable | logger |
Undocumented |
Instance Variable | parent |
Undocumented |
Instance Variable | root |
Undocumented |
Method | _cmd |
Undocumented |
Method | _cmd |
get a configvalue |
Method | _cmd |
Undocumented |
Method | _cmd |
set a configvalue. syntax for argument: [network=net] [channel=chan] module.setting newvalue |
Method | _exec |
execute function f with *args or return a usage info if the arguments were wrong (too much/too little) |
Method | _get |
get a usage info for function f |
parse the commandstring and handle the command
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
get help information for arguments *args (parsed strings from a command, i.e. "ircClient", "disconnect")
Add a command to the control service
Parameters | |
f:callable | the callable to be called, when the command is issued |
namespace | Undocumented |
name | Undocumented |