Files
amari/commands.json
T
hikari 94247c2a68 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
2026-03-03 11:44:20 -08:00

88 lines
1.9 KiB
JSON

[
{
"name": "create-issue",
"type": 1,
"description": "Creates a Gitea issue with an AI-generated body.",
"options": [
{
"name": "owner",
"description": "The owner of the repository.",
"type": 3,
"required": true
},
{
"name": "repo",
"description": "The name of the repository.",
"type": 3,
"required": true
},
{
"name": "title",
"description": "The issue title.",
"type": 3,
"required": true
},
{
"name": "description",
"description": "Optional additional context for the issue body.",
"type": 3,
"required": false
}
]
},
{
"name": "create-task",
"type": 1,
"description": "Creates a Leantime task with an AI-generated description.",
"options": [
{
"name": "title",
"description": "The task title.",
"type": 3,
"required": true
},
{
"name": "description",
"description": "Optional additional context for the task description.",
"type": 3,
"required": false
},
{
"name": "priority",
"description": "The task priority level (1-5, default 3).",
"type": 4,
"required": false
}
]
},
{
"name": "onboard-mentee",
"type": 1,
"description": "Onboards a new mentee by setting up their GitHub repository.",
"options": [
{
"name": "mentee_name",
"description": "The mentee's full name.",
"type": 3,
"required": true
},
{
"name": "github_username",
"description": "The mentee's GitHub username.",
"type": 3,
"required": true
},
{
"name": "mentee",
"description": "The mentee's Discord account.",
"type": 6,
"required": true
}
]
},
{
"name": "Forward to Naomi",
"type": 3
}
]