a fun bot for the hc slack
1import type { MessageResponse } from "../types";
2
3export default async function handleHelp(): Promise<MessageResponse> {
4 return {
5 text: "*Takes Commands*\n\n• `/takes history` - View your past takes sessions",
6 response_type: "ephemeral",
7 blocks: [
8 {
9 type: "section",
10 text: {
11 type: "mrkdwn",
12 text: "*Takes Commands*",
13 },
14 },
15 {
16 type: "section",
17 text: {
18 type: "mrkdwn",
19 text: "• `/takes history` - View your past takes sessions",
20 },
21 },
22 {
23 type: "actions",
24 elements: [
25 {
26 type: "button",
27 text: {
28 type: "plain_text",
29 text: "🏡 Home",
30 emoji: true,
31 },
32 value: "status",
33 action_id: "takes_home",
34 },
35 {
36 type: "button",
37 text: {
38 type: "plain_text",
39 text: "⚙️ Settings",
40 emoji: true,
41 },
42 value: "settings",
43 action_id: "takes_settings",
44 },
45 {
46 type: "button",
47 text: {
48 type: "plain_text",
49 text: "📋 History",
50 emoji: true,
51 },
52 value: "history",
53 action_id: "takes_history",
54 },
55 ],
56 },
57 ],
58 };
59}