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