Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mishk0 authored Aug 2, 2016
1 parent 2a6bf41 commit 9fed34b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ bot.on('start', function() {
// define existing username instead of 'user_name'
bot.postMessageToUser('user_name', 'meow!', params);

// If you add a 'slackbot' property,
// you will post to another user's slackbot channel instead of a direct message
bot.postMessageToUser('user_name', 'meow!', { 'slackbot': true, icon_emoji: ':cat:' });

// define private group instead of 'private_group', where bot exist
bot.postMessageToGroup('private_group', 'meow!', params);
});
Expand Down

0 comments on commit 9fed34b

Please sign in to comment.