Version 1.0 · Powered by Claude Sonnet

The AI assistant
your Discord
didn't know it needed

CDN_Captain silently monitors every channel in the CDNDayz DayZ server. It crawls the entire website, processes screenshots, and answers only when it has a real, sourced, confident answer. Everything else — silence.

200 Pages crawled
75 Msgs of context
1–10 Confidence scoring
6+ Min confidence to speak
# help
KR
KryptoRaider
how far do i need to build from a trader?
🤖
CDN_Captain BOT
You need to build at least 1,000 metres away from any trader zone. This is a hard exclusion zone — building inside it isn't allowed regardless of placement.

Full server rules: cdndayz.com/rules
DZ
DayZFan42
when is the next wipe?

Everything it can do

Built for one server, but engineered with the reliability of a production system.

🌐
Full Website Crawl
Crawls every page on cdndayz.com (up to 200 pages) using a real headless Chromium browser — renders JavaScript so dynamic content like wipe schedules is never missed.
🔄
Auto-Refresh
Re-crawls automatically every hour in the background. Always current, zero manual action. If a rule changes, the bot knows within the hour.
🧠
Claude Sonnet AI
Powered by Anthropic's Claude Sonnet — one of the most capable AI models available. Reasons across sources, applies rules to scenarios, handles nuanced questions.
🖼️
Screenshot Reading
Reads and diagnoses error screenshots using Claude's vision. Supports multiple screenshots per message — error codes, message text, and instructions are all extracted.
🗂️
Structured Knowledge
After every crawl, Claude extracts all concrete facts into a clean indexed list — rules, error codes, distances, donation tiers, server IP. These are always checked first.
📅
Wipe Schedule Parser
A dedicated AI pass after every crawl calculates the exact next wipe date and time from today. Wipe questions always get a precise, calculated answer.
🔔
Change Detection
Every re-crawl diffs new content against old. If a page meaningfully changes — new rule, updated schedule — an alert is posted to a designated staff channel automatically.
💬
Deep Context Awareness
Reads the last 75 messages for full conversation context. Knows who's talking to whom, follows reply chains, and handles follow-up questions with full prior context.
🎯
Confidence Scoring
Claude rates its own answer 1–10 before sending. Below 6 = completely silent. No uncertain answers, no guesses, no "I'm not sure but..." — either precise or nothing.
👍
Admin Reaction Feedback
Admins react ❌ to mark an answer wrong — bot deletes it instantly. React ✅ to confirm it's correct. All feedback stored permanently in the database.
🛡️
Admin Tag Protection
Intercepts any message that directly tags a protected admin with a polite redirect to the website, rules channel, and ticket system. Smart enough to ignore reply pings.
🐕
Auto-Restart Watchdog
A separate watchdog process monitors the bot and auto-restarts it on crash — up to 10 times per 5-minute window. The bot stays online even through bugs or network blips.

How it decides to answer

Every message passes through a multi-stage filter before Claude is ever called. API cost is zero for messages that don't need a response.

1
Pre-checks (zero API cost)
Admin tag? Sidekick trigger? Bot paused? Message too old? Not a question? Directed at a specific user? User on cooldown? Duplicate question? — All checked instantly without touching Claude.
2
Context Loading
Fetches the last 75 messages, checks for two-person conversations, walks the reply chain, and identifies if this is a follow-up to a previous bot answer stored in the database.
3
TF-IDF Content Retrieval
Keywords are extracted and semantically expanded, then every crawled page is scored using a TF-IDF algorithm. The top 12 most relevant pages are selected for Claude — exact hex error codes get a 20× bonus.
4
Single Claude Call
One AI call that simultaneously decides whether to respond AND generates the answer. Structured facts, wipe info, site index, conversation context, images, and reply chain are all passed in one shot.
5
Confidence Gate
Claude returns a CONFIDENCE:X score (1–10) before the answer. If it's below 6, the answer is discarded and the bot stays silent. No uncertain answers ever reach Discord.
6
Reply + Persist
The answer is sent with exponential backoff retry (rate-limit safe), then logged to SQLite with timestamp, author, question, answer, confidence score, and Discord message ID for later feedback tracking.

All !cdn commands

Prefix: !cdn  — all commands are available to any server member unless otherwise noted.

Command Description
!cdn help Shows a help card with bot info and current knowledge base stats (pages crawled, model, etc.)
!cdn ask <question> Force the bot to answer any question, bypassing all auto-filters. Useful for testing or edge cases.
!cdn ping Health check — shows latency, uptime, memory usage, crawl age, DB size, structured facts count, and current wipe schedule.
!cdn history Shows the last 10 answers the bot gave in the current channel, including confidence scores and admin feedback marks.
!cdn crawl Manually trigger a fresh re-crawl of cdndayz.com, bypassing the 1-hour cache. Useful after a website update.
!cdn status Shows crawl age, reference channel age, AI model in use, context window size, and auto-crawl schedule.
👍
Admin Reaction Feedback
React to any CDN_Captain answer to mark it as wrong — the bot will delete it immediately. React to confirm it's correct. Only protected admins trigger this. All feedback is stored in the database and visible via !cdn history.

The tech stack

Every component chosen for reliability, performance, and zero-friction deployment on Windows.

Claude Sonnet
Anthropic's AI — reasoning, vision, structured output
discord.py 2.3
Async Discord gateway, commands, reactions
Playwright
Headless Chromium — full JS rendering for crawling
SQLite
Persistent Q&A memory, feedback, state — zero config
BeautifulSoup4
HTML parsing and text extraction
aiohttp
Async HTTP for image downloads
PyInstaller
Single-file .exe bundling for easy distribution
Watchdog
Custom crash recovery with restart throttle

Ready to deploy?

Download the installer, enter your Anthropic API key, and the bot handles everything else — Python, dependencies, Playwright, and launch.

1
Download .exe
2
Enter Anthropic API key
3
Click Install & Start
4
Bot goes live 🎉

You'll need a Discord bot token · and an Anthropic API key · both entered during setup