slackapi/hubot-slack

Add support for `response.sendPrivate`

Open

#442 opened on Sep 29, 2017

View on GitHub
 (7 comments) (2 reactions) (0 assignees)CoffeeScript (637 forks)batch import
enhancementgood first issue

Repository metrics

Stars
 (2,339 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Description

It'd be nice to have response.sendPrivate which basically sends a direct message to the given user that initiated that response. It would be a shortcut for this mainly:

robot.messageRoom msg.message.user.name, "Hello!"

This is supported by hubot-irc, hubot-test-helper and hubot-rocketchat. Probably it would be also easier for users to figure out sending private messages quick and easy.(Check #159 and #299)

I'd like to contribute this, but I'm not really sure how to write to test it with the stubs and whatever we have in place.

Contributor guide