1.0.5 • Published 8 years ago

slack-promise v1.0.5

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
8 years ago

slack-promise

Enhances the slack library with es6-promises.

Install

npm i slack-promise

API

Refer slack for detailed API description. All APIs supported by slack are also supported by slack-promise, difference being that along with the support for callbacks, the APIs return a promise too.

Eg. Starting an RTM session:

import slack from 'slack-promise'

let bot = slack.rtm.client()
let token = process.env.SLACK_TOKEN

bot.hello()
    .then(message => {
        console.log(`Got a message: ${message}`);
        bot.close();
    });

bot.listen({token})
1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago