Skip to content

bots-squad/hubot-json-rest-adapter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Hubot adapter using HTTP and Json as data format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 100.0%