1
0
Fork 0
mirror of https://github.com/kou029w/daraz-san.git synced 2025-01-18 08:05:04 +00:00
daraz-san/main.js
2020-07-21 21:45:28 +09:00

18 lines
399 B
JavaScript

const App = require("./app");
const Receiver = require("./receiver");
async function main() {
const receiver = new Receiver({
signingSecret: process.env.SLACK_SIGNING_SECRET,
});
const app = new App({
token: process.env.SLACK_BOT_TOKEN,
receiver,
});
await app.start(process.env.PORT || 8080);
console.log("Daraz-san ⚡ running");
}
if (require.main === module) main();