diff --git a/bin/probot-simulate.js b/bin/probot-simulate.js index c719be44..f2f3055c 100755 --- a/bin/probot-simulate.js +++ b/bin/probot-simulate.js @@ -32,4 +32,4 @@ const plugins = require('../lib/plugin')(probot); plugins.load([pluginPath]); probot.robot.log('Simulating event', eventName); -probot.robot.webhook.emit(eventName, {event: eventName, payload}); +probot.receive({event: eventName, payload});