Skip to content

Commit 9aab963

Browse files
committed
Added reply to thread for responses
1 parent ac20db7 commit 9aab963

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ai-assistant/src/utils/handleCommandResponse.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function handleCommandResponse(
2626
.setRoom(room)
2727
.setGroupable(false)
2828
.setText(`\`/${command}\` ${args}`);
29-
await modify.getCreator().finish(greetMessage);
29+
const threadID = await modify.getCreator().finish(greetMessage);
3030

3131
const progressIndicators = [
3232
":hammer:",
@@ -36,7 +36,11 @@ export async function handleCommandResponse(
3636
];
3737

3838
const builder = modify.getCreator().startMessage();
39-
builder.setSender(user).setRoom(room).setText(":pick: Working");
39+
builder
40+
.setSender(user)
41+
.setRoom(room)
42+
.setThreadId(threadID)
43+
.setText(":pick: Working");
4044
const message = await modify.getCreator().finish(builder);
4145

4246
let progressCount = 0;

0 commit comments

Comments
 (0)