Skip to content

Commit bb6ad04

Browse files
authored
Merge pull request #6 from brianleach/channel-first-docs
Docs: recommend a Slack channel id over a DM user id
2 parents da5e5b0 + 99a2382 commit bb6ad04

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
NTFY_TOPIC=your-private-topic-name
44

55
# Second channel: Slack. Alerts are mirrored here in addition to ntfy.
6-
# Set to your Slack user id (U...) for a DM, or a channel id (C...). The
6+
# Set to a Slack channel id (C..., recommended: alerts land in a channel) or
7+
# your user id (U...) for a DM. The
78
# scheduled session sends it via the Slack MCP. Leave empty to use ntfy only.
89
SLACK_USER_ID=
910

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ session through the Slack MCP, so it needs no egress allowlist change — handy
179179
backstop while you sort out ntfy. To enable, set your Slack target in `.env`:
180180

181181
```bash
182-
echo 'SLACK_USER_ID=U0XXXXXXX' >> .env # your user id (DM) or a channel id (C...)
182+
echo 'SLACK_USER_ID=C0XXXXXXX' >> .env # a channel id (C..., recommended) or your user id (U..., DMs you)
183183
```
184184

185185
The Slack MCP connector must be enabled on the session/routine. Leave

RUN.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ for you to send. After Step 3:
120120
all empty and `notice` is null, send nothing.
121121
- If `slack_user_id` is null, Slack is disabled — skip (ntfy only).
122122
- Otherwise use the Slack MCP `slack_send_message` with `channel_id` =
123-
`slack_user_id` (a `U...` id DMs that user). Send ONE message per alert:
123+
`slack_user_id` (recommended: a `C...` channel id, which posts to that
124+
channel; a `U...` user id DMs that user instead). Send ONE message per alert:
124125
- For each entry in `high`: a clear "🚗 R2 ORDER INVITE detected" message with
125126
the subject, sender, received time, the one-line reason, and the `gmail_url`.
126127
- For each entry in `maybe`: a "🔍 POSSIBLE R2 invite — check manually" message

r2_monitor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ def _load_dotenv() -> None:
9797
# Slack is a SECOND notification channel, sent alongside ntfy. The script can't
9898
# reach the Slack MCP itself, so it records what to send in state/last_run.json
9999
# and the scheduled session (RUN.md) mirrors it to this Slack user/channel via
100-
# the Slack MCP. Set SLACK_USER_ID (a user id "U..." for a DM, or a channel id)
100+
# the Slack MCP. Set SLACK_USER_ID (a channel id "C..." recommended, or a
101+
# user id "U..." for a DM)
101102
# in .env to enable; leave empty to use ntfy only.
102103
SLACK_USER_ID = os.environ.get("SLACK_USER_ID", "").strip()
103104

0 commit comments

Comments
 (0)