ZenIRCBot API
Instantiates a new ZenIRCBot API object.
Parameters: |
|
---|---|
Returns: | ZenIRCBot instance |
Takes Redis server parameters to use for instantiating Redis clients.
Get redis client using values from instantiation time.
Parameters: |
|
---|
This will notify all admin_spew_channels of the script coming online when the script registers itself. It will also setup a subscription to the ‘out’ channel that listens for ‘commands’ to be sent to the bot and responds with the list of script, command name, and command description for all registered scripts.
Sends an “ACTION” message to the specified channel(s)
Parameters: |
|
---|
This is a helper so you don’t have to handle the JSON or the envelope yourself.
Parameters: | message (string) – The message to send. |
---|
This is a helper function that sends the message to all of the channels defined in admin_spew_channels.
Sends a message to the specified channel(s)
Parameters: |
|
---|
This is a helper so you don’t have to handle the JSON or the envelope yourself.
Loads a JSON file and returns an object.
Parameters: | name (string) – The JSON file to load. |
---|---|
Returns: | An native object with the contents of the JSON file. |
This is a helper so you don’t have to do the file IO and JSON parsing yourself.