a fun bot for the hc slack
1import TakesConfig from "../../../libs/config";
2import type { MessageResponse } from "../types";
3
4export default async function handleHelp(): Promise<MessageResponse> {
5 return {
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 response_type: "ephemeral",
8 blocks: [
9 {
10 type: "section",
11 text: {
12 type: "mrkdwn",
13 text: "*Takes Commands*",
14 },
15 },
16 {
17 type: "section",
18 text: {
19 type: "mrkdwn",
20 text: `• \`/takes start [minutes]\` - Start a new session (default: ${TakesConfig.DEFAULT_SESSION_LENGTH} min)\n• \`/takes pause\` - Pause your session (max ${TakesConfig.MAX_PAUSE_DURATION} min)\n• \`/takes resume\` - Resume your paused session\n• \`/takes stop [notes]\` - End session with optional notes\n• \`/takes status\` - Check status\n• \`/takes history\` - View past sessions`,
21 },
22 },
23 {
24 type: "actions",
25 elements: [
26 {
27 type: "button",
28 text: {
29 type: "plain_text",
30 text: "🎬 Start New Session",
31 emoji: true,
32 },
33 value: "start",
34 action_id: "takes_start",
35 },
36 {
37 type: "button",
38 text: {
39 type: "plain_text",
40 text: "📋 History",
41 emoji: true,
42 },
43 value: "history",
44 action_id: "takes_history",
45 },
46 ],
47 },
48 ],
49 };
50}