1
0
Fork 0
mirror of https://github.com/kou029w/daraz-san.git synced 2025-01-18 16:08:06 +00:00
daraz-san/app.js
2019-07-27 02:30:36 +09:00

15 lines
343 B
JavaScript

const { App } = require("@slack/bolt");
const patternsOrMiddleware = require("./")
const app = new App({
token: process.env.SLACK_BOT_TOKEN,
signingSecret: process.env.SLACK_SIGNING_SECRET
});
app.message(...patternsOrMiddleware);
(async () => {
await app.start(process.env.PORT || 80);
console.log("Daraz-san ⚡ running");
})();