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

Allow hubot to mention users #132

Closed
paulhammond opened this issue Dec 18, 2014 · 5 comments
Closed

Allow hubot to mention users #132

paulhammond opened this issue Dec 18, 2014 · 5 comments

Comments

@paulhammond
Copy link
Contributor

Today you can do this in a script to cause a mention:

msg.send "Hey <@U02871NCZ>"

Where U02871NCZ is the internal user id of the slack user you want to mention. But... this isn't exactly intuitive, and is unlikely to be supported by most hubot scripts. We should automatically convert @paulhammond to <@U02871NCZ> in our send function.

While we're at it, we might want to do the same for @channel to <!channel> (and group, and everyone).

@evansolomon
Copy link
Contributor

I feel like I've had hubot scripts use @{{username}} and I've gotten notifications for those. Am I imagining that?

@paulhammond
Copy link
Contributor Author

Maybe... the rules around notifications on Slack are complex and you may have got some kind of notification if you have your name set up as a highlight word. But, if we want hubot-slack to consistently trigger push notifications on mobile then we'll want to send the <@U...> version.

@evansolomon
Copy link
Contributor

Got it, makes sense

@kdawgwilk
Copy link

👍 for this feature

@tedsteen
Copy link

tedsteen commented Oct 3, 2015

this is fixed nicely in #193

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 a pull request may close this issue.

4 participants