Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hubot-web

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hubot-web

readme.md

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Hubot Web Adapter

An adapter for Hubot to work via HTTP. Great for your custom web chat interface.

Setup

Set HUBOT_REST_SEND_URL as an environment variable to send hubot responses to.

If you want Hubot responses to be formatted for HTML, currently replacing newlines with <br>s, set HUBOT_HTML_RESPONSE to true.

Also, if you're running hubot on Heroku, set your Procfile as a web process and not an app.

Special Options Hash

Typically messages to Hubot have three parameters: Message, User and Room. This adapter allows for an extendable options has to be sent with the message.

To send options, when posting to Hubot use the following hash:

// post: /receive/:room
{
  from: 'nickname string',
  message: 'message body string',
  options: {
    "javascript": "object"
  }
}

The options hash can be accessed in a script with msg.message.user.options.

Keywords

FAQs

Package last updated on 14 Jun 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc