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

11 lines
319 B
TypeScript
Raw Permalink Normal View History

2022-04-27 00:24:46 +09:00
import { AwsLambdaReceiver } from "@slack/bolt";
import App from "../../dist/app";
const token = process.env.SLACK_BOT_TOKEN;
const signingSecret = process.env.SLACK_SIGNING_SECRET;
const receiver = new AwsLambdaReceiver({ signingSecret });
new App({ token, receiver });
export const handler = receiver.toHandler();