0.0.10 • Published 10 years ago

sarah-slack v0.0.10

Weekly downloads
1
License
ISC
Repository
bitbucket
Last release
10 years ago

Build Status

Sarah-Slack

Features

Channel

  • New message
  • User is typing

Sample code

module.exports = function(domain) {
    var slack = domain.trigger('Slack');

    //Listen to every channel for a new message
    slack.channels().on('message', (channel, message, user) => {
        console.log(message.text);
    });

    //Get the 'general' channel
    var general = slack.channel('general');

    //When a new message is send in slack
    general.on('message', (channel, message, user) => {
        console.log(message.text);
    });

    //When a certain user is typing
    general.on('user_typing', (user, channel) => {
        console.log(channel.name);
    });
});

Tests

Currently we have a couple of unit tests, you can run them using the npm test command.

Known issues

The slack API we use in sarah-slack has a lot of options, events and methods. It's up to us to implement them all. Unfortunately there are only two events supported right now..

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.1

10 years ago