Skip to content

Commit 6a2c0f3

Browse files
aster-voidclaude
andcommitted
bots/auto-moderator: add iwamoto ryutaku and fix duplicate notifications
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f014308 commit 6a2c0f3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

bots/auto-moderator/src/data.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,7 @@ export const idMap = new Map<UUID, `${number}`>([
4646

4747
// 田村 聡太
4848
["20ad872b-594c-8106-aae5-0002615bc919", "1357355510315090081"],
49+
50+
// 岩本 龍拓
51+
["1f7d872b-594c-81e7-bd5f-0002afe2ab30", "1357848383250763916"],
4952
]);

bots/auto-moderator/src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ async function main() {
8383
if (taskResults.length === 0) return "本日は期限が迫っているタスクはありませんでした。";
8484

8585
const tasks = taskResults.map((t) => t.formatted);
86-
const allUnregistered = [...new Set(taskResults.flatMap((t) => t.unregistered))];
86+
const allUnregistered = [
87+
...new Map(taskResults.flatMap((t) => t.unregistered).map((u) => [u.id, u])).values(),
88+
];
8789

8890
let message = `
8991
3日以内に期限が迫っているタスクがあります!

0 commit comments

Comments
 (0)