Skip to content

SIDC C2 Chat Notifications

Hey Sky edited this page Nov 12, 2026 · 2 revisions

SIDC – C2 — Chat & notifications

🇬🇧 English · 🇩🇪 Deutsche Version

What is this page about? Talking inside C2 (chat, System feed, task discussions) and getting notified outside of it — Discord direct message, ntfy, Gotify, Matrix, webhook, e‑mail, web push — plus the Discord bridge that mirrors group chats into Discord channels. For whom? All users; the server part (bot, .env) is for admins. Overview: SIDC – C2.

1. Chat

Sidebar Chat (badge = unread messages).

Conversation type (New conversation) Members
Direct you and one person (Search people …)
New group free group with a Group name; Add member, Rename, Leave group
From group/project chat for an existing admin group or a project — members follow the source automatically; @project addresses everyone
  • Enter sends, Shift+Enter = new line. Mention with @name / @group (autocomplete) — the person is notified.
  • Messages can be deleted. New messages arrive by polling (about every 3 s in the open chat, badge every 10 s).
  • Task discussions and file comments in projects work the same way (see Projects).

2. System feed

The fixed conversation System (Mentions & assignments) at the top of the chat collects all notifications. Each entry has Reply — the answer lands in the chat or as a task comment and marks the entry read. Mark all read, Clear read.

3. Notifications outside the page

Gear → Notifications → Add channel.

flowchart TD
    A["Event: mention, assignment,<br/>plan access, project member"] --> B["Entry in the System feed"]
    B --> C{"Channel set up<br/>and kind ticked?"}
    C -- "no" --> D["Only in the System feed"]
    C -- "yes" --> E["Delivery in the background"]
    E --> F["Discord DM, ntfy, Gotify,<br/>Matrix, webhook, e-mail, web push"]
    F --> G["Reply from Discord DM<br/>lands back in C2"]
Loading
Channel Notes
Discord (direct message) created automatically once your Discord account is linked (section 4) or the admin entered your Discord ID; you choose the kinds or switch it off
ntfy (push to the phone) ntfy topic/server
Gotify self‑hosted push
Matrix room message
Webhook (JSON) generic JSON POST, optionally HMAC‑signed
E‑mail only if the server has SMTP_HOST set — otherwise greyed out
Browser / smartphone (web push) Enable this browser; no third party. iPhone: only after adding the page to the home screen

Per channel: Name (optional), Active, the kinds to deliver, Send test, "Last delivered successfully".

Kind Default
Mention in task on
Mention in chat on
Assignment on
Access to a plan granted on
Added to a project on
New feedback in your project (owner) optional (off)
Mention in a file comment optional (off)
  • Secrets (tokens, webhook URLs) are stored encrypted and never sent back to the browser.
  • Entries already read in C2 are not pushed.
  • Internal/LAN addresses are blocked as targets unless the admin sets NOTIFY_ALLOW_PRIVATE_HOSTS=true (for self‑hosted ntfy/Gotify/Matrix). PUBLIC_URL makes notifications contain a link.

4. Link your Discord account

  1. Gear → Notifications → Link Discord account → a one‑time code appears (Copy).
  2. In Discord type /c2 link, pick the command from the list and paste the code into the field code (valid a few minutes, single use).
  3. Done: your Discord messages appear in bridged chats under your name, and notifications come as DM from the bot (switchable in the channel list). Unlink reverses it.

Alternatively the admin enters your Discord user ID (Users & groups → Discord). Reply to a DM in Discord with Reply: the text lands as a chat message or task comment at the source; the bot confirms with ✅ (only for linked users and notifications that allow a reply).

5. Discord bridge (group chats ⇄ Discord channels)

flowchart TD
    A{"Who connects?"} -- "admin" --> B["Administration, Settings:<br/>Discord bridge"]
    B --> C["Pick group chat and channel,<br/>Connect"]
    A -- "chat member" --> D["Chat header:<br/>Connect to Discord"]
    D --> E["Generate new code,<br/>in the channel /c2 link + code"]
    C --> F["Two-way sync"]
    E --> F
    F --> G["Linked users under their name,<br/>others as Name (Discord)"]
Loading
  • A group chat can be connected to one or more Discord channels. Messages from C2 appear in Discord; answers there land in the chat and trigger @‑notifications.
  • The bot reports every 2 minutes all text channels it can read/write (all servers); the admin list shows them. Without reports: "The bot has not reported any channels yet".
  • Edits and deletions are not synced; attachments arrive as links. Note: the chat content is mirrored into the Discord channel.
  • Disconnect (chat header) removes a connection.

Server side: the bot (Red‑DiscordBot with the cog c2bridge, own repo "SIDC - C2 - Command & Control-Bot") runs as service discord-bot in the same compose stack and needs BRIDGE_TOKEN and DISCORD_TOKEN in .env (optional DISCORD_OWNER_ID, BOT_PREFIX). Without BRIDGE_TOKEN the UI says "The bridge is not set up on the server". The bridge protocol (/bridge/*) is neutral — Matrix or others only need another client. See Admin & install.

Clone this wiki locally