slackapi/hubot-slack

Add support for `response.sendPrivate`

Open

#442 aperta il 29 set 2017

Vedi su GitHub
 (7 commenti) (2 reazioni) (0 assegnatari)CoffeeScript (637 fork)batch import
enhancementgood first issue

Metriche repository

Star
 (2339 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

  • 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.

Guida contributor