refactor: align commands and interaction handler with project style

- Replace forwardToOwner embed approach with getComponentsForNaomi + Components V2
- Extract InteractionCreate handler to src/events/handleInteractionCreate.ts
- Replace deployGlobal.ts script with static commands.json payload
- Fix minor error handling in createTask and onboardMentee
This commit is contained in:
2026-03-03 11:44:20 -08:00
parent 1b40c529f9
commit 94247c2a68
7 changed files with 174 additions and 195 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ const generateTaskDescription = async(
system: taskSystemPrompt,
});
const [ firstContent ] = aiResponse.content;
return firstContent.type === "text"
return firstContent?.type === "text"
? firstContent.text
: description;
};