1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 06:18:07 +00:00
_/bolt/main.ts
2024-04-25 22:06:47 +09:00

14 lines
320 B
TypeScript

import bolt from "npm:@slack/bolt";
const { SLACK_BOT_TOKEN = "", SLACK_SIGNING_SECRET = "" } = Deno.env.toObject();
const app = new bolt.App({
token: SLACK_BOT_TOKEN,
signingSecret: SLACK_SIGNING_SECRET,
});
app.event("app_mention", async (c) => {
await c.say(`Pong! ${c.event.text}`);
});
await app.start();