feat: initial prototype #1

Merged
naomi merged 7 commits from feat/init into main 2025-03-07 11:54:08 -08:00
Showing only changes of commit 790be688ea - Show all commits

View File

@ -38,19 +38,19 @@ const slack = new App({
installerOptions: { installerOptions: {
directInstall: true, directInstall: true,
}, },
scopes: [ "commands", "chat:write" ], scopes: [ "commands" ],
signingSecret: process.env.SLACK_SIGNING_SECRET ?? "", signingSecret: process.env.SLACK_SIGNING_SECRET ?? "",
stateSecret: process.env.SLACK_STATE_SECRET ?? "", stateSecret: process.env.SLACK_STATE_SECRET ?? "",
}); });
slack.command("/mommy", async({ ack, body, say }) => { slack.command("/mommy", async({ ack, body, respond }) => {
await ack(); await ack();
const trimmed = body.text.trim(); const trimmed = body.text.trim();
const name = trimmed.length > 0 const name = trimmed.length > 0
? trimmed ? trimmed
: undefined; : undefined;
const response = await getMommy(name); const response = await getMommy(name);
await say(response); await respond(response);
}); });
const bsky = new AtpAgent({ const bsky = new AtpAgent({