← All bots

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, define game terms, and save replays with a shareable link — all from Discord. Runs entirely on Cloudflare.

Features

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.

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.

Save & Share Replays

Save a replay straight from Discord — paste the replay string, attach a .txt file, or right-click any message with one — then share a link that opens on territorial-tools with the correct game version pre-selected.

Commands

Strategy, live stats, and replay saving — each command with a clear purpose.

EveryoneAdmin
/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.

Example /ask What is the best opening strategy for small maps?
/term <name> Everyone

Get a plain-English explanation of a Territorial.io term, mechanic, or piece of community jargon.

Example /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.

Example /sources micro techniques
/replay save Everyone

Save a Territorial.io replay — paste it as text, attach a .txt file, or fill in an optional title, description, date, and category (Teams / BR / 1v1 / Zombie / 137). Also available as a "Save Replay" right-click command on any message with a .txt attachment. Tags are added from the website.

Example /replay save text:-GNh--0ZOc32k... title:Epic 1v6 comeback
/replay list Everyone

Browse your saved replays with Prev/Next paging and numbered buttons — click one to open Watch, Share, Edit, and Delete for that replay. Replays are tied to your Discord account globally — save from one server, browse from any other.

Example /replay list
/replay get <id> Everyone

Re-fetch the shareable link and details for one of your saved replays by ID.

Example /replay get id:rep_a1b2c3
/profile [user] Everyone

Show a Discord avatar and name alongside their saved-replay count (by category) and propaganda design count. Defaults to yourself; pass a user to check anyone else's.

Example /profile user:@Someone
/propaganda list Everyone

Browse your saved propaganda designs the same way as /replay list. View-only — saving and editing designs is website-only.

Example /propaganda list
/propaganda get <id> Everyone

Show the text and colors saved on one of your propaganda designs by ID.

Example /propaganda get id:prd_a1b2c3
/reset Everyone

Clear your recent conversation context in this channel, so /ask starts fresh instead of using recent follow-up memory.

Example /reset
Knowledge Base

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.

How It Works

RAG in three steps.

1

You ask a question

Type /ask followed by any Territorial.io strategy question in Discord.

2

Relevant knowledge is retrieved

The bot vector-searches a curated Territorial.io knowledge base (Cloudflare Vectorize) for the most relevant entries.

3

AI generates a cited answer

Cloudflare Workers AI generates a concise answer grounded in the retrieved context, with source references included.