1.0.0 • Published 8 years ago

b9-channels v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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

1.0.0

8 years ago