generated from nhcarrigan/template
feat: add slash commands and context menu command #16
Reference in New Issue
Block a user
Delete Branch "feat/commands"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
This PR adds a suite of slash commands and a context menu command to Amari, along with shared utilities and quality improvements across the board.
New Commands
/create-issue— generates a GitHub issue on a specified repo using AI-drafted content (title, description, acceptance criteria)/create-task— creates a task in Naomi's Leantime instance with an AI-drafted description and configurable priority/onboard-mentee— automates the mentorship onboarding flow (GitHub invite, forum thread, role assignment)Shared Utilities
src/utils/makeAiRequest.ts— a single wrapper around the Anthropic SDK for all AI calls, with Amari's personality prompt baked in and full error handlingsrc/events/handleInteractionCreate.ts— extracted interaction handler (was inline inindex.ts) to keep complexity under controlQuality Improvements
ephemeral: true→flags: [ MessageFlags.Ephemeral ](deprecated API removed)try/catch+logger.erroraudit across all modules (logMenteeJoin,checkAchievements,processMentorshipRole,processGitHubEvent)deployGlobal.tsreplaced with a staticcommands.jsonpayload for manual registrationNotes
CLIENT_IDis needed in 1Password atop://Environment Variables - Naomi/Amari/client idfor thecommands.jsonregistration call✨ This PR was created with help from Hikari~ 🌸