From 26a40f494354b572c77ede2e248e466bef1e2cb6 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 4 Sep 2026 04:06:24 +0200 Subject: [PATCH] Read the established DISCORD_OWNER_ID rather than a new spelling The rewrite invented IDUNN_OPERATOR_DISCORD_ID, BIFROST_OPERATOR_DISCORD_ID, and OWNER_DISCORD_ID for a value VoidBot config already names DISCORD_OWNER_ID. That is the same parallel-vocabulary mistake this tool was just repaired for, in a smaller place. Read DISCORD_OWNER_ID first and keep one alias. Co-Authored-By: Claude Opus 5 --- tools/operator-notification.mjs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/operator-notification.mjs b/tools/operator-notification.mjs index 685f41b..7b98030 100644 --- a/tools/operator-notification.mjs +++ b/tools/operator-notification.mjs @@ -46,15 +46,15 @@ async function publishIdunnAlarm(options) { reason: readOptionOrEnv(options, "reason", "IDUNN_ALARM_REASON", "Idunn raised an operator alarm."), raisedAt: readOptionOrEnv(options, "raised-at", "IDUNN_ALARM_RAISED_AT", new Date().toISOString()), }; + // DISCORD_OWNER_ID is the established GameCult name for this, used by VoidBot's + // config schema. Read it first rather than minting another spelling. const recipientId = optionalString(options["recipient-id"]) ?? - optionalString(process.env.IDUNN_OPERATOR_DISCORD_ID) ?? - optionalString(process.env.BIFROST_OPERATOR_DISCORD_ID) ?? - optionalString(process.env.OWNER_DISCORD_ID); + optionalString(process.env.DISCORD_OWNER_ID) ?? + optionalString(process.env.IDUNN_OPERATOR_DISCORD_ID); if (!recipientId) { throw new Error( - "Set --recipient-id, IDUNN_OPERATOR_DISCORD_ID, BIFROST_OPERATOR_DISCORD_ID, or OWNER_DISCORD_ID " + - "so Bifrost knows which operator to reach.", + "Set --recipient-id, DISCORD_OWNER_ID, or IDUNN_OPERATOR_DISCORD_ID so Bifrost knows which operator to reach.", ); } @@ -241,8 +241,8 @@ Commands: publish-idunn-alarm Publish an Idunn alarm as a discord-dm gate command Options: - --recipient-id Operator Discord user id (or IDUNN_OPERATOR_DISCORD_ID / - BIFROST_OPERATOR_DISCORD_ID / OWNER_DISCORD_ID) + --recipient-id Operator Discord user id (or DISCORD_OWNER_ID / + IDUNN_OPERATOR_DISCORD_ID) --store Gate provider store (default: .bifrost/provider-store.cc) --wait-seconds Wait for the delivery receipt instead of returning at publish --dry-run Build the command and definitions without writing