Reply to help in private #14

merged 4 commits into from May 5, 2016


None yet

2 participants

erikzaadi commented Apr 25, 2016 edited

One of the annoyities in chatops is scrolling over 4123123123 lines of @hubot help results.

This little PR replies to whomever needed help in private, not cluttering a room / channel.

To Opt in to the feature, add the HUBOT_HELP_REPLY_IN_PRIVATE environment variable

@therealklanni therealklanni and 1 other commented on an outdated diff Apr 29, 2016
@@ -66,7 +66,11 @@ module.exports = (robot) ->
emit = cmds.join "\n"
- msg.send emit
+ if msg.message?.user?.name?
+ msg.reply 'replied to you in private!'
therealklanni Apr 29, 2016 Member

Maybe this should be an opt-in config?

erikzaadi Apr 30, 2016 Contributor

@therealklanni hmm, nay bad, adding.

@therealklanni therealklanni merged commit 63e46cd into hubot-scripts:master May 5, 2016

Published v0.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment