Discord Bot
Training Bot
An AI-powered strategy assistant and live stats lookup for Territorial.io. Ask strategy questions, look up player and clan stats, and define game terms — all from Discord. Runs entirely on Cloudflare.
Strategy knowledge and live stats, right in Discord.
AI Strategy Q&A
Ask any Territorial.io strategy or mechanics question in plain English and get a fast, grounded answer.
Curated Knowledge Base
Answers are backed by a hand-curated Territorial.io strategy knowledge base, not generic AI responses.
Built on Cloudflare
Runs entirely on Cloudflare Workers and Workers AI — low latency, globally distributed, no dedicated server required.
Live Game Stats
Look up real-time Territorial.io stats: player profiles, clan rankings, leaderboards, 1v1 history, and recent game results.
Term Lookup
Instantly get plain-English explanations of Territorial.io terms, mechanics, and community jargon.
Cited Answers
Strategy answers from /ask include source references from the knowledge base so you know where the info comes from.
Five commands, each with a clear purpose.
/ask <question> Everyone Ask any Territorial.io strategy or mechanics question. The bot retrieves relevant knowledge base entries and generates a cited answer. Ask for a named opening (e.g. GBv1) and it returns the procedure directly.
/ask What is the best opening strategy for small maps? /stats <query> Everyone Look up live Territorial.io game data — player profiles, clan rankings, leaderboards, 1v1 results, and recent games.
/stats mONEY profile Player profile (by account name) /stats [CORGI] clan Clan ranking and points /stats top 10 clans Clan leaderboard /stats top 10 1v1 1v1 player leaderboard /stats recent games Last 8 game results /stats [CORGI] stats week Clan points trend over a week /stats [CORGI] clan /term <name> Everyone Get a plain-English explanation of a Territorial.io term, mechanic, or piece of community jargon.
/term boating /sources <query> Everyone Show the raw knowledge-base entries that match a query. Useful for seeing exactly what the bot knows about a topic.
/sources micro techniques /authorise [enabled] Admin Authorize or deauthorize this bot in the current server. Pass enabled=true to turn on, false to turn off. No argument shows current status.
/authorise enabled:true Four document types, each with precise retrieval semantics.
Mechanics
Authoritative facts: tick durations, density thresholds, interest formulas. Retrieved with precision — a wrong mechanics chunk produces wrong numbers.
Openings
Step-by-step early-game strategy for named variants — GBv1, GBv2, GBv3, Freddo, Budget, and more. Each variant is a separate document, never merged.
Strategy
Phase-specific judgment advice: midgame borders, endgame crown play, diplomacy timing, and more. Depth matters here — thin docs produce vague answers.
Glossary
One canonical definition per Territorial.io term, with aliases so the bot recognises every way a player might phrase the same concept.
RAG in three steps.
You ask a question
Type /ask followed by any Territorial.io strategy question in Discord.
Relevant knowledge is retrieved
The bot vector-searches a curated Territorial.io knowledge base (Cloudflare Vectorize) for the most relevant entries.
AI generates a cited answer
Cloudflare Workers AI generates a concise answer grounded in the retrieved context, with source references included.