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