forked from ubiquity/ubiquibot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.ts
More file actions
19 lines (16 loc) · 793 Bytes
/
Copy pathmain.ts
File metadata and controls
19 lines (16 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { Probot } from "probot";
import { EmitterWebhookEventName } from "@octokit/webhooks";
import { bindEvents } from "./bindings";
import { GithubEvent } from "./types";
const UBIQUITY = `
_| _| _|_|_| _|_|_| _|_| _| _| _|_|_| _|_|_|_|_| _| _|
_| _| _| _| _| _| _| _| _| _| _| _| _|
_| _| _|_|_| _| _| _|_| _| _| _| _| _|
_| _| _| _| _| _| _| _| _| _| _| _|
_|_| _|_|_| _|_|_| _|_| _| _|_| _|_|_| _| _|
`;
export default function main(app: Probot) {
console.log(UBIQUITY);
const allowedEvents = Object.values(GithubEvent) as EmitterWebhookEventName[];
app.on(allowedEvents, bindEvents);
}