hubot-archive / hubot-tell

Hubot plugin to send a user a message the next time they are present in the room
MIT License
26 stars 15 forks source link

tell: allow username to be proceeded with @ #6

Closed parkr closed 8 years ago

parkr commented 8 years ago

This allows us to do either:

hubot tell parkr Hi!

or:

hubot tell @parkr Hi!

:)

/cc @lorenzhs @patcon @technicalpickles

lorenzhs commented 8 years ago

Thanks. For the record, it's me and @xhochy wo can merge PRs :)

technicalpickles commented 8 years ago

I have a feeling we need something in hubot's core like robot.userPattern. Adapters could customize that so slack supports @, but only returns the user. We have a ton of places that could use that in our own hubot.

lorenzhs commented 8 years ago

Yeah that does sound like it could be useful for a lot of scripts. At the very least it would simplify handling of username mentions,