const loadProbot = appFn => { probot = probot || createProbot({ id: process.env.APP_ID, secret: process.env.WEBHOOK_SECRET, cert: findPrivateKey() }) if (typeof appFn === 'string') { appFn = resolve(appFn) } probot.load(appFn) return probot }
probot = createProbot({ id: 1, cert: 'test', githubToken: 'test' }) probot.load(hydrabot) })