-
Notifications
You must be signed in to change notification settings - Fork 73
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
enter responder macro #69
Comments
I've thought about these, but I've never really had a practical use-case for them. If you could outline what you'd expect from such macros and how they would be used, I could see if I can work that into the plans for 2.0. |
one example would be, when someone enters, the bot could greet them. there are some use-cases where we'd want to greet and give some instruction, or rules, or links to resources, etc |
@ryanwinchester is this usually a one-off action? Would you actually want to define more than one of these type of responders? I'm curious if this would make more sense for a callback in the robot module instead? def handle_join(%Hedwig.Join{room: room, user: user}, state) do
# ...
end
def handle_leave(%Hedwig.Leave{room: room, user: user}, state) do
# ...
end |
And what about module.exports = (robot) ->
robot.catchAll (msg) ->
msg.send "I don't know how to react to: #{msg.message.text}." |
hubot has
enter
andleave
methods that can be very helpful.well, at least the
enter
one is.any plans on adding
enter
responder macro?The text was updated successfully, but these errors were encountered: