Skip to content

Allows a hubot to subscribe to a Rocket.chat streamer and react when the streamer emits events

Notifications You must be signed in to change notification settings

garychapman/hubot-rocketchat-listener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hubot-rocketchat-listener

Allows a hubot to subscribe to a Rocket.chat streamer and react when the streamer emits events

Usage

const StreamListener = require('hubot-rocketchat-listener')

const listener = new StreamListener(
    robot, // hubot instance
    'stream-user-events', // stream to listen on
    'afterCreateUser', // the particular event name we want to listen for
    (user) => { console.log(`User ${user.name} just joined`) } // callback for event
  )
  
listener.listen()

About

Allows a hubot to subscribe to a Rocket.chat streamer and react when the streamer emits events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published