Skip to content

Instantly share code, notes, and snippets.

View thojansen's full-sized avatar

Thomas Jansen thojansen

View GitHub Profile
<html lang="en">
<head>
<script type="text/javascript" src="./index.js"></script>
<script type="text/javascript" src="./service-worker.js"></script>
<meta charset="utf-8">
</head>
<body>
<video autoplay muted loop playsinline class="video">
<source src="./assets/video/animation.mp4" type="video/mp4">
const createProbot = require('probot')
const fs = require('fs')
require('dotenv').config()
class ProbotRunner {
constructor (createProbot, id, secret, privateKey, port, webhookPath, webhookProxy) {
this.createProbot = createProbot
this.id = id || process.env.APP_ID
this.secret = secret || process.env.WEBHOOK_SECRET
this.privateKey = privateKey || this.findKey()