-
Notifications
You must be signed in to change notification settings - Fork 42
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
Is there a way to add my own hooks for certain events? #23
Comments
What kind of API would you envision? |
You could indeed! ;) In fact, that's what I'm doing now in my local fork: if eventType in eventTypes
# Emit the event for other scripts to handle
robot.emit "github-repo-event", {
data : data,
eventType : eventType
room : room
}
announceRepoEvent data, eventType, (what) ->
robot.messageRoom room, what It's been easy to work with so far. |
Oh, and thanks for this project! Good stuff! :) |
Open
Yeah, go for it! but please provide tests so we can merge easily :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd like to be able to respond to these events with some scripts of my own. From what I can tell, there isn't a way to add my own handler methods, is there?
The text was updated successfully, but these errors were encountered: