mirror of
https://github.com/kou029w/daraz-san.git
synced 2025-01-18 16:08:06 +00:00
18 lines
399 B
JavaScript
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();
|