Stop duplicate moderation replies at the source
This commit is contained in:
parent
d9aafa12af
commit
417019abab
10 changed files with 240 additions and 8 deletions
|
|
@ -563,6 +563,8 @@ function writeLastSpeechStatus(payload) {
|
|||
const statusPath = resolve(repoRoot, ".voidbot/status/void-last-speech.json");
|
||||
mkdirSync(dirname(statusPath), { recursive: true });
|
||||
writeFileSync(statusPath, `${JSON.stringify(payload, null, 2)}\n`, "utf8");
|
||||
const logPath = resolve(repoRoot, ".voidbot/status/void-speech-log.jsonl");
|
||||
writeFileSync(logPath, `${JSON.stringify(payload)}\n`, { encoding: "utf8", flag: "a" });
|
||||
}
|
||||
|
||||
function stripLeadingBom(input) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue