flottbot icon indicating copy to clipboard operation
flottbot copied to clipboard

Discussion: Hear with arguments

Open stahnma opened this issue 4 years ago • 1 comments

Is there a reason that hear isn't allowed to have arguments? Like is that a design decision or an odd technical limitation? I haven't dug into it too far yet, but thought I'd ask before I started working it up.

I dislike having to address the bot directly for...many things. I'm pretty used to hubot and it's flexibility so trying to see what I can do to get some of the core functionality to have parity.

stahnma avatar Oct 21 '21 04:10 stahnma

i'd say it was initially built like that "by design", but i wouldn't call the current hear implementation complete. as was discussed elsewhere, capturing groups would be a nice addition, for example. We just never got to it and the push/demand was small.

most folks i know are using respond and a few of the hear users make do with what they can do within the limitations or offload additional parsing to <insert your favorite scripting language>.

also worth mentioning that we eventually want to have other triggers, eg. events such as emoji reactions, so this area might see more build-out and changes.

wass3r avatar Oct 25 '21 05:10 wass3r

this might be addressed with the referenced PR. if not, feel free to reopen. thanks again @justmiles

wass3r avatar Aug 25 '22 04:08 wass3r