Skip to content

Commit

Permalink
[from now] 2024/02/29 20:05:10
Browse files Browse the repository at this point in the history
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 0be0a63..779c22d 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -2,6 +2,6 @@
   "editor.defaultFormatter": "biomejs.biome",
   "editor.formatOnPaste": true,
   "editor.formatOnSave": true,
-  "cSpell.words": ["CHECKIN", "checkins"],
+  "cSpell.words": ["CHECKIN", "checkins", "Mokumoku"],
   "editor.formatOnType": true
 }
diff --git a/src/index.ts b/src/index.ts
index 1881f73..1aec815 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -1,6 +1,7 @@
 import { InteractionType } from "discord-interactions";
 import { Hono } from "hono";
 import checkinCommand from "./interactions/applicationCommands/checkin";
+import mokumokuStartCommand from "./interactions/applicationCommands/mokumokuStart";
 import { handleApplicationCommands } from "./interactions/handleApplicationCommands";
 import { handleModalSubmits } from "./interactions/handleModalSubmit";
 import checkinModal from "./interactions/modalSubmits/checkinModal";
@@ -24,7 +25,7 @@ app.post("/interaction", verifyDiscordInteraction, async (c) => {
           intentObj: body,
           userRepository: new UsersRepository(c.env.DB),
           checkinsRepository: new CheckinsRepository(c.env.DB),
-          commands: [checkinCommand],
+          commands: [checkinCommand, mokumokuStartCommand],
         }),
       );
     case InteractionType.MODAL_SUBMIT:
diff --git a/src/responses/checkinCommandResponse.ts b/src/responses/checkinCommandResponse.ts
index efd5530..514781d 100644
--- a/src/responses/checkinCommandResponse.ts
+++ b/src/responses/checkinCommandResponse.ts
@@ -27,8 +27,7 @@ export const buildCheckinModalResponse = (
               max_length: 512,
               required: true,
               value: prevProfile,
-              placeholder:
-                "山田太郎です。水戸でエンジニアをしています。",
+              placeholder: "山田太郎です。水戸でエンジニアをしています。",
             },
           ],
         },
  • Loading branch information
kawamataryo committed Feb 29, 2024
1 parent b46115b commit 47122b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"cSpell.words": ["CHECKIN", "checkins"],
"cSpell.words": ["CHECKIN", "checkins", "Mokumoku"],
"editor.formatOnType": true
}
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { InteractionType } from "discord-interactions";
import { Hono } from "hono";
import checkinCommand from "./interactions/applicationCommands/checkin";
import mokumokuStartCommand from "./interactions/applicationCommands/mokumokuStart";
import { handleApplicationCommands } from "./interactions/handleApplicationCommands";
import { handleModalSubmits } from "./interactions/handleModalSubmit";
import checkinModal from "./interactions/modalSubmits/checkinModal";
Expand All @@ -24,7 +25,7 @@ app.post("/interaction", verifyDiscordInteraction, async (c) => {
intentObj: body,
userRepository: new UsersRepository(c.env.DB),
checkinsRepository: new CheckinsRepository(c.env.DB),
commands: [checkinCommand],
commands: [checkinCommand, mokumokuStartCommand],
}),
);
case InteractionType.MODAL_SUBMIT:
Expand Down
3 changes: 1 addition & 2 deletions src/responses/checkinCommandResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ export const buildCheckinModalResponse = (
max_length: 512,
required: true,
value: prevProfile,
placeholder:
"山田太郎です。水戸でエンジニアをしています。",
placeholder: "山田太郎です。水戸でエンジニアをしています。",
},
],
},
Expand Down

0 comments on commit 47122b8

Please sign in to comment.