Responder

Responder

Class representing a bot responder.

Constructor

new Responder(options)

Create a bot responder.
Source:
Parameters:
Name Type Description
options Object The responder options.
Name Type Attributes Description
alias String | Alias <optional>
The alias to respond with. This must be either an Alias or the name of one registered the bot.

Members

(static) defaults

The default options used when constructing a responder.
Source:

(static) Image

Source:
See:

(static) Message

Source:
See:

(static) RandomImage

Source:
See:

(static) RandomMessage

Source:
See:

Methods

respond(message) → {Response}

Create a Response object which is ready to respond to an incoming message.
Source:
Parameters:
Name Type Description
message Object The Slack message to create a response for.
Returns:
Type:
Response
The prepared response.