mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
14 lines
320 B
TypeScript
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();
|