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