An adapter for Hubot to work via HTTP using Json as data format.
Useful for headless chat.
Set HUBOT_REST_SEND_URL
as an environment variable to send hubot responses to.
Hubot response is sent in json format, with the following structure:
{
from: 'botname',
message: 'message body string'
}
Typically messages to Hubot have three parameters: Message, User and Room:
// post: /receive/:room
{
from: 'nickname string',
message: 'message body string'
}