Skip to content

Commit

Permalink
Merge pull request #11 from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
u1-liquid authored Jan 5, 2025
2 parents 09df225 + c8ef7d7 commit 3ee39a5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,20 @@ export default class Message {
await sleep(2000);
}

return await this.ai.post({
const postData = {
replyId: this.note.id,
text: text,
fileIds: opts?.file ? [opts?.file.id] : undefined,
cw: opts?.cw,
renoteId: opts?.renote
});
};

// DM以外は普通に返信し、DMの場合はDMで返信する
if (this.note.visibility != 'specified') {
return await this.ai.post(postData);
} else {
return await this.ai.sendMessage(this.userId, postData);
}
}

@bindThis
Expand Down

0 comments on commit 3ee39a5

Please sign in to comment.