This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: add command line starts with description

+22 -3
+1 -1
src/features/takes/handlers/help.ts
··· 3 3 4 4 export default async function handleHelp(): Promise<MessageResponse> { 5 5 return { 6 - text: `*Takes Commands*\n\n• \`/takes start [minutes]\` - Start a new takes session, optionally specifying duration\n• \`/takes pause\` - Pause your current session (max ${TakesConfig.MAX_PAUSE_DURATION} min)\n• \`/takes resume\` - Resume your paused session\n• \`/takes stop [notes]\` - End your current session with optional notes\n• \`/takes status\` - Check the status of your session\n• \`/takes history\` - View your past takes sessions`, 6 + text: `*Takes Commands*\n\n• \`/takes start [description]\` - Start a new takes session, optionally specifying description\n• \`/takes pause\` - Pause your current session (max ${TakesConfig.MAX_PAUSE_DURATION} min)\n• \`/takes resume\` - Resume your paused session\n• \`/takes stop [notes]\` - End your current session with optional notes\n• \`/takes status\` - Check the status of your session\n• \`/takes history\` - View your past takes sessions`, 7 7 response_type: "ephemeral", 8 8 blocks: [ 9 9 {
+21 -2
src/features/takes/setup/commands.ts
··· 55 55 56 56 // Route to the appropriate handler function 57 57 switch (subcommand) { 58 - case "start": 59 - response = await handleStart(userId, channelId); 58 + case "start": { 59 + if (args.length < 2) { 60 + response = getDescriptionBlocks(); 61 + break; 62 + } 63 + 64 + const descriptionInput = args.slice(1).join(" "); 65 + 66 + if (!descriptionInput.trim()) { 67 + response = getDescriptionBlocks( 68 + "Please enter a note for your session.", 69 + ); 70 + break; 71 + } 72 + 73 + response = await handleStart( 74 + userId, 75 + channelId, 76 + descriptionInput, 77 + ); 60 78 break; 79 + } 61 80 case "pause": 62 81 response = await handlePause(userId); 63 82 break;