Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand reply-in-private for user.id, custom message #20

Closed
wants to merge 1 commit into from
Closed

Expand reply-in-private for user.id, custom message #20

wants to merge 1 commit into from

Conversation

TobiTenno
Copy link

Allowing the reply-in-private to leverage msg.message.user.id in case duplicate user names are allowed.

Allow the use of a custom notification message telling the user that they were replied to in private.

Also added a listener ID, I think there have been discussions about issues with this, so I can remove it if desired.

Allowing the reply-in-private to leverage msg.message.user.id in case duplicate user names are allowed.

Allow the use of a custom notification message telling the user that they were replied to in private.
@@ -56,9 +58,11 @@ helpContents = (name, commands) ->
"""

module.exports = (robot) ->
replyInPrivate = process.env.HUBOT_HELP_REPLY_IN_PRIVATE
replyInPrivate = process.env.HUBOT_HELP_REPLY_IN_PRIVATE
privateNotifMessage = process.env.HUBOT_HELP_PRIVATE_MSG || 'replied to you in private!'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most replies are structured @${author}, ${msg} from what I've seen on adapters, so it's lowercase to not make those look odd.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and you can make it whatever you want.

@jonyeezs
Copy link

I've tested this on hipchat doesn't work.

hipchat relies on the jabba id aka jid.

We'll need to use msg.message?.user?.jid. Another option for USE_JID is needed

I've done a quick test and that worked for hipchat.

@TobiTenno
Copy link
Author

TobiTenno commented Dec 16, 2016

user.id can be set to user.jid
in the adapter

@jonyeezs
Copy link

jonyeezs commented Dec 16, 2016

user.id can be set to user.jid
in the adapter

@aliasfalse could you explain where this is? I'm unsure where that can be set. Do you mean the hipchat adapter?

@TobiTenno
Copy link
Author

@jonyeezs yeah, that's where i meant. Sorry for not responding.

@jonyeezs
Copy link

jonyeezs commented Dec 31, 2016 via email

@stale stale bot added the stale label Jun 1, 2017
@stale
Copy link

stale bot commented Jun 1, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@reduckted
Copy link

I'm pretty sure this would fix #15. Please merge it.

@stale stale bot removed the stale label Jun 1, 2017
@TobiTenno
Copy link
Author

@jonyeezs it's not an option on their readme. enhance the hipchat adapter to map the user jid to the user id. there's no reason to have multiple fields that mean the same thing.

@stale stale bot added the stale label Aug 30, 2017
@stale
Copy link

stale bot commented Aug 30, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@reduckted
Copy link

I'm pretty sure this would fix #15. Please merge it.

@stale stale bot removed the stale label Aug 30, 2017
@stale
Copy link

stale bot commented Nov 28, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 28, 2017
@reduckted
Copy link

*sigh* I guess this project has been abandoned. Oh well, last try.

I'm pretty sure this would fix #15. Please merge it.

@stale stale bot removed the stale label Nov 28, 2017
@mose
Copy link
Member

mose commented Jan 28, 2018

Well, since then the codebase changed from coffeescript to pure js, so the merge is going to need some work. I like the idea to have configurability about how to reply in private though. I may try to tinker on this.

@TobiTenno
Copy link
Author

I can go redo it later in pure js. I actually prefer pure js, tbh

@TobiTenno
Copy link
Author

i'm gonna close this and re-open on the new fork

@TobiTenno
Copy link
Author

Opened #45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants