BMO facilitates the creation of slack bots.
The npm package is called beemo.
$ npm install beemo
Bot and use it to connect to slack given your bot token. This will return a promise of an
rtm object which represents the Real-Time Messaging API. You can then listen to events emitted by this object, such as
'message'. See node-slack-client for more information.
messageContext() handler augments a raw RTM message into a
MessageContext which contains a reference to the
Bot as well as an augmented
Message which contains additional properties such as parsed links that were contained in the raw message.
MessageContext also contains methods that facilitate the processing of messages, such as registering commands, detecting URLs, and matching on arbitrary patterns. Generic handlers can also be created which simply take a
const Bot = Bot;const bmo = "bmo";bmo;