sync: auto-sync from Mikes-MacBook-Air.local at 2026-07-08 06:49:28
Author: Mike Swanson Machine: Mikes-MacBook-Air.local Timestamp: 2026-07-08 06:49:28
This commit is contained in:
@@ -12,6 +12,11 @@
|
||||
# bash post-bot-alert.sh "message text" bot # force #bot-alerts
|
||||
# echo "message text" | bash post-bot-alert.sh
|
||||
#
|
||||
# Identity: This script sources get-identity.sh, making $USER_SHORT, $USER_NAME,
|
||||
# $MACHINE, $USER_EMAIL available. Callers can use these in messages for correct
|
||||
# attribution (e.g., "[RMM] $USER_SHORT deployed..."). The script itself doesn't
|
||||
# auto-inject identity - callers must explicitly use the vars when needed.
|
||||
#
|
||||
# Token resolution (first hit wins):
|
||||
# 1. SOPS vault: projects/discord-bot/bot-token.sops.yaml field credentials.bot_token
|
||||
# 2. projects/discord-bot/.env key DISCORD_TOKEN
|
||||
@@ -27,6 +32,9 @@ BOT_CHANNEL_ID="624710699771232265" # #bot-alerts — default (Syncro + gene
|
||||
DEV_CHANNEL_ID="1509998508198068484" # #dev-alerts — private RMM/Dev alerts (Howard + Mike only)
|
||||
ROOT="${CLAUDETOOLS_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)}"
|
||||
|
||||
# Load identity for attribution (soft-fail if missing)
|
||||
source "$ROOT/.claude/scripts/get-identity.sh" 2>/dev/null || true
|
||||
|
||||
# --- message (arg or stdin) ---
|
||||
MSG="${1:-}"
|
||||
if [ -z "$MSG" ] && [ ! -t 0 ]; then MSG="$(cat)"; fi
|
||||
|
||||
Reference in New Issue
Block a user