1
0
Fork 0
mirror of https://github.com/kou029w/daraz-san.git synced 2025-01-18 16:08:06 +00:00
daraz-san/main.js

19 lines
399 B
JavaScript
Raw Permalink Normal View History

2020-07-21 21:00:35 +09:00
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();