beepboop-smallwins-slack - Run a multi-team smallwins-slack bot on Beep Boop.
Supporting multiple teams from a single bot process is made simpler as
beepboop-smallwins-slack handles creating new RTM connections as new teams add your bot.
npm install --save beepboop-smallwins-slack
var slack =var beepboop =var workers = beepboopstartslackdebug: trueworkers
see examples/simple.js for an example.
Module has exported function
options.debugBoolean - Logs debug output if true
- Returns an EventEmitter2 instance. For more information on the events exposed, please see the underlying
beepboopmodule's documentation, as it is what is returned here.
Accessing slack workers
Since there can be multiple slack workers spawned (1 for each team), these are exposed via a
workers property on the returned beepboop instance after calling
workers property is an object hash where the key is a unique bot token identifying the worker, and the value is the rtm client as returned from slack's
var slack =var beepboop =var workers = beepboopstartslackdebug: true// after teams have been addedworkers
This module will bubble up events sent from the beepboop-js package