Constructor
new ImageResponder(options)
Create a bot image responder.
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
The responder options.
|
Examples
new Bot.Responder.Image({
image: 'https://i.imgur.com/ydM3Wb4.gif'
});
new Bot.Responder.Image({
alias: 'GoatBot',
image: 'https://i.imgur.com/ydM3Wb4.gif',
label: 'Some cute goats',
color: '#ffced8'
});
Extends
Methods
(static) create() → {ImageResponder}
Create a bot message responder (see ImageResponder for parameters).
- Source:
(async) respond(message) → {Promise}
Respond to an incoming message with the responder message.
- Overrides:
- Source:
Parameters:
Name | Type | Description |
---|---|---|
message |
Object
|
The Slack message to respond to. |
Returns:
- Type:
-
Promise
A promise which resolves when the message is sent.