Fix: Memoryの存在しない参照 / Del: 不要なimport

This commit is contained in:
2026-05-26 20:02:14 +09:00
parent c4e0d2763b
commit bd2c86658c
3 changed files with 2 additions and 55 deletions
-13
View File
@@ -54,20 +54,7 @@ if (config.earthquake?.useHistoryData) {
return;
}
const id = message.id ?? message._id;
const mem = Memory.memory;
if (mem.processedInfo.includes(id) && !config.debug) {
console.log("重複した地震情報:", message.id);
return;
}
processMessage(message);
if (!config.debug) {
const mem = Memory.memory;
mem.processedInfo = mem.processedInfo.concat([id]);
Memory.memory = mem;
}
});
}