npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hubot-lm-webhook

v1.0.3

Published

A hubot adapter for LaKeel Messenger using webhook.

Downloads

29

Readme

Description

This is the LaKeel Messenger adapter for hubot.

Installation

1. Install the hubot generator

You will need node.js and npm. Once those are installed, we can install the hubot generator.

    $ npm install -g yo generator-hubot

This will give us the hubot yeoman generator.

2. Install the hubot

Now you can make a new directory, and generate a new instance of hubot in it, using this LaKeel Messenger adapter.

    $ mkdir myhubot
    $ cd myhubot
    $ yo hubot --adapter lm-webhook

You will be asked a few questions about the bot you are creating. When you finish answering, yeoman will download and install the necessary dependencies.

3. Configure environment variables

LaKeel Messenger adapeter uses the following environment variables.

  • PORT The port number which hubot runs. Please change as needed. It default is 8080.
  • HUBOT_LM_HOSTNAME The host name you want to connect to.
  • HUBOT_LM_API_KEY Bot user's API key.
  • HUBOT_LM_SECRET_KEY Bot user's secret key.
  • HUBOT_LM_WEBHOOK_TOKEN The token that guarantees that it is a message from LaKeel Messenger. Please check on the admin console outgoing webhook page.

You will need to configure these environment variables in your hubot's bin/hubot.

    export PORT="8080"
    export HUBOT_LM_HOSTNAME="xxx.lakeel.com"
    export HUBOT_LM_API_KEY="api_key"
    export HUBOT_LM_SECRET_KEY="secret_key"
    export HUBOT_LM_WEBHOOK_TOKEN="webhook_token"

4. Outgoing Webhook URL

On the admin console outgoing webhook page, please set the following URL as Webhook URL (Destination settings).

    http://[YOUR_HOSTNAME]:[PORT]/webhook
  • YOUR_HOSTNAME The host name or IP address of the host on which the hubot is deployed.
  • PORT The port number set above.

5. Run the hubot

Finally, you can run hubot with LaKeel Messenger adapter.

    bin/hubot -a lm-webhook

Copyright

Copyright © 2017 LaKeel, Inc.