Skip to content

Commit

Permalink
Define receive method for manually delivering events
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Jun 27, 2017
1 parent 0da2ede commit 2f6a520
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Expand Up @@ -60,6 +60,10 @@ module.exports = options => {

load(plugin) {
plugin(robot);
},

receive(event) {
return webhook.emit(event.event, event);
}
};
};

0 comments on commit 2f6a520

Please sign in to comment.