Skip to content

About

Read and triage your Discord messages automatically from Windows notifications. No token, no API calls, no client mods.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Safe Discord Reader

Windows 10 | 11 Python 3.10+ Discord API calls: 0 Token not needed MIT license

Stop scrolling through every channel.
Safe Discord Reader reads the messages you receive and tells you which ones need you,
which ones are a one-line answer, and which ones are spam, without touching your Discord account.

Quick start · How it works · Why it's safe · Usage · FAQ

dtriage sorting 16 messages into needs attention, easy answers, fyi and spam


✨ What you get

🔴 Needs attention, first

Urgent DMs, questions to you, problem reports and deadlines float to the top, ranked by urgency.

🟡 Easy answers, pre-drafted

"What's the wiki link?" gets a draft reply in the sender's language, with placeholders like <link> instead of made-up facts.

🔵 Chatter, compressed

Forty messages of banter in #general become one line: how many, when, and what it was about.

⚫ Spam, out of sight

Fake "free Nitro" gifts, "I accidentally reported you" scams, lookalike domains and shortened links are caught by rules before any AI sees them.

🛡️ Why it's safe

Important

Discord bans automated user accounts ("self-bots"), even ones that only read. In 2026, people using a well-known read-only exporter with their user token reported forced password resets, account violations and suspensions. Going slow didn't help.

Safe Discord Reader never goes near your account. The official Discord app already shows a Windows notification for each new message. Windows lets any app you approve read notifications through a documented API, the same one phone-companion and smartwatch apps use. That's all this uses.

Reads your DMs Automatic What Discord sees Risk to your account
Self-bots and user-token tools ✅ ✅ Your token used by a non-official client 🔴 Locks, violations, suspensions
Client mods + a logger plugin ✅ ✅ The client reports mods to Discord 🟠 Explicitly against the rules
An official bot ❌ ✅ A bot, only in servers an admin added it to 🟢 None
A right-click "Apps → Triage" app ✅ ❌ one at a time An official interaction 🟢 None
Safe Discord Reader ✅ ✅ Nothing. You, using the official app 🟢 None

It never:

  • reads, stores or asks for your Discord token
  • calls the Discord API or opens any Discord file
  • modifies the Discord client
  • dismisses, replies to or acts on a notification

⚙️ How it works

flowchart LR
    D["Discord desktop app<br/>(official, untouched)"] -- shows --> N["Windows notification"]
    N -- "read-only Windows API" --> C["collector.py<br/>(Windows, no network code)"]
    C -- inbox.jsonl --> T["dtriage<br/>(Windows or WSL)"]
    T --> R{"Spam rules"}
    R -- obvious spam --> DB[("SQLite")]
    R -- everything else --> L["Claude Haiku<br/>(no tools, JSON only)"]
    L --> DB
    DB --> O["Your digest"]
Loading
  1. collector/collector.py runs quietly on Windows and checks for new notifications twice a second. Discord's go into inbox.jsonl; everything else is ignored.
  2. dtriage.py imports new lines into a local SQLite database, runs cheap spam rules, sends only the undecided messages to Claude Haiku in batches, and prints the digest.
  3. Messages are classified with the context of earlier messages in the same conversation, so "7pm?" is understood as a reply to "who's coming tonight?".

🚀 Quick start

You need: Windows 10 or 11 · the Discord desktop app · Python 3.10+ for Windows · the Claude Code CLI signed in (optional, for AI sorting)

1. Get the code

git clone https://github.com/badwolf-ro/safe-discord-reader.git
cd safe-discord-reader

2. Install and start the collector (its own Python environment in %USERPROFILE%\.discord-triage, nothing global)

powershell -ExecutionPolicy Bypass -File scripts\install.ps1 -Autostart

-Autostart adds a shortcut to your Startup folder so the collector restarts after a reboot. Leave it out if you'd rather start it yourself with scripts\start.ps1.

3. Allow notification access when Windows asks, or turn on Settings → Privacy & security → Notifications → Let apps access your notifications.

4. Tell Discord what to notify you about. Only messages that produce a notification can be read:

  • User Settings → Notifications: keep desktop notifications on, and don't use Do Not Disturb.
  • Right-click each server or channel you care about → Notification Settings → All Messages. DMs and mentions notify by default.

5. Read your digest

python dtriage.py          # on Windows
./dtriage.py               # in WSL, which finds your Windows inbox automatically

Tip

No Discord message handy? Run the collector in test mode and fire a fake notification:

scripts\stop.ps1
& "$env:USERPROFILE\.discord-triage\venv\Scripts\python.exe" "$env:USERPROFILE\.discord-triage\collector.py" --app PowerShell
# in a second window:
powershell -ExecutionPolicy Bypass -File collector\test_toast.ps1

Press Ctrl+C when done, then scripts\start.ps1 to go back to normal.

🧭 Usage

dtriage below means python dtriage.py on Windows or ./dtriage.py in WSL (or link it onto your PATH).

Command What it does
dtriage Import new messages, classify them, show the digest
dtriage digest --spam Show the digest, listing spam too
dtriage show 12 Full text of message 12, with the rule hits that fired
dtriage done 12 15 Clear handled items (done --all clears everything)
dtriage watch Every 5 minutes: import, classify, print new needs-attention lines
dtriage status Collector health and counts per label
dtriage run --no-llm Rules only. Nothing leaves your machine
Environment variables
Variable Default Purpose
DTRIAGE_OWNER the account owner Your name, so the classifier knows who "you" are
DTRIAGE_MODEL haiku Claude model used for classification
DTRIAGE_INBOX %USERPROFILE%\.discord-triage\inbox.jsonl Where the collector writes
DTRIAGE_DATA %LOCALAPPDATA%\discord-triage or ~/.local/share/discord-triage Where the database lives

🏷️ Labels

Label Meaning Examples
🔴 needs_attention Needs you personally "prod is down", "invoice never arrived", "@you did you fix the restore?"
🟡 easy_answer A one- or two-sentence reply, drafted for you "what's the wiki link?", "what time does it start?"
🔵 fyi No action needed announcements, chatter, thanks
⚫ spam Scams, phishing, ads, raids "free Nitro", "I accidentally reported your account"

Each message also gets an urgency from 0 to 3, shown as ! marks.

🔐 Privacy and security

  • Your token is never involved. No code here reads Discord's files, and the collector has no network code at all.
  • AI sorting is optional. With it on, message text is sent to Anthropic through your own Claude Code login, in batches of up to 30. With --no-llm, everything stays on your machine.
  • Hardened against prompt injection. Discord messages are untrusted input. The classifier runs with all tools disabled, must answer in a fixed JSON schema, and messages that try to instruct it get flagged [injection attempt] rather than obeyed.
  • Safe to print. Control characters and terminal escape sequences are stripped from message text before it reaches your terminal.
  • Your data stays local: inbox.jsonl in %USERPROFILE%\.discord-triage\ and one SQLite file. Delete them at any time.

⚠️ Limitations

Honest list. It reads notifications, so it sees what notifications carry:

  • Only messages that produce a notification. Muted channels and "mentions only" servers are skipped, and nothing comes in while Discord is on Do Not Disturb.
  • Discord doesn't notify you for the channel you're looking at, but you're reading that one anyway.
  • No history, edits, deletes or reactions. Images arrive as "sent an image".
  • Notifications carry no message IDs, so there are no links back to the exact message.
  • Windows may cut off very long messages.
  • Windows only, for now.

❓ FAQ

Is this against Discord's Terms of Service?
It doesn't use the API, your token or a modified client, which are the things Discord's rules on self-bots and client mods target. It reads notifications that Windows hands to any app you give permission to. Discord's Terms also prohibit scraping "by using any robot, spider, crawler, scraper, or other automatic device, process, or software". We don't believe reading your own OS notifications is scraping Discord's services, but we're not lawyers and can't speak for Discord.
Can Discord detect it?
Nothing reaches Discord's servers, so there is nothing for them to see. Windows doesn't tell the app that posted a notification who read it; that's what makes smartwatch and phone-companion apps possible.
Why not just use a bot?
A bot only sees servers whose admins added it, and it can never read your DMs with other people. If you run the servers you care about, a bot is a fine complement.
macOS, Linux, Android?
Not yet. The same idea works there: Android has NotificationListenerService, Linux desktops send notifications over D-Bus, and macOS keeps a notification database. Contributions welcome.
Can I use a local model instead of Claude?
Not built in yet. Use --no-llm for rules only, or add a backend next to call_claude() in dtriage.py. A local Ollama backend is on the roadmap.

🗺️ Roadmap

  • Android collector (NotificationListenerService)
  • Local model backend (Ollama)
  • Tray icon with a live needs-attention counter
  • macOS and Linux collectors

🤝 Contributing

Issues and pull requests are welcome. One rule is not negotiable: nothing in this project may ever call the Discord API, read Discord's files, use a token, or modify the Discord client. That rule is the whole point.

📄 License

MIT. Not affiliated with, endorsed by or sponsored by Discord Inc. "Discord" is a trademark of Discord Inc.

About

Read and triage your Discord messages automatically from Windows notifications. No token, no API calls, no client mods.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages