b9-channels

1.0.0 • Public • Published

NPM
Build Status Coverage Status


b9-channels

A b9 slack bot plugin, which provides and maintains an array of team channels.

Methods

b9.channel( key )

Returns a channel object.

  • key {String}
    The id or name of a channel to find.

Properties

b9.channels {Array}

A list of channel objects, which the are visible to the bot.
https://api.slack.com/types/channel

Listeners

"rtm.start"

Initializes the channels list.
https://api.slack.com/methods/rtm.start

"channel_created"

Adds a new channel to the the channels list.
https://api.slack.com/events/channel_created

"channel_rename"

Updates an item in the channels list.
https://api.slack.com/events/channel_rename

"channel_deleted"

Removes an item from the channels list.
https://api.slack.com/events/channel_deleted

"channel_archive"

Updates an item in the channels list.
https://api.slack.com/events/channel_archive

"channel_unarchive"

Updates an item in the channels list.
https://api.slack.com/events/channel_unarchive

Readme

Keywords

Package Sidebar

Install

npm i b9-channels

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mike!