Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 601 Bytes

readme.md

File metadata and controls

26 lines (17 loc) · 601 Bytes

Hubot Rest Json Adapter

An adapter for Hubot to work via HTTP using Json as data format.

Useful for headless chat.

Setup

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'
}

Send message to Hubot

Typically messages to Hubot have three parameters: Message, User and Room:

// post: /receive/:room
{
  from: 'nickname string',
  message: 'message body string'
}