Repository navigation
Patch Notes
Generated from the thetowersdk repository. Edits made here are overwritten on the next push — change the source file instead.
Five years of the developers' own announcements, queryable. The catalogs say what a number is today; this says when it became that, and what was said about it at the time.
import {
whenIntroduced,
searchPatchNotes,
patchNotesForVersion,
patchNotesBetween,
recentPatchNotes,
PATCH_NOTES_SOURCE,
} from '@beardedunicorn/thetowersdk/knowledge'
whenIntroduced('shockwave')
// { postedAt: '2021-07-15…', version: '0.1.29', title: 'v0.1.29 is out for everyone now…' }
searchPatchNotes('guardian') // every note mentioning it, newest first
patchNotesForVersion('26.1.2') // or 'v26.1.2' — both work
patchNotesBetween('2024-01-01', '2024-12-31')
recentPatchNotes(5) // what changed lately
PATCH_NOTES_SOURCE
// { notes: 259, withVersion: 191, earliest: '2021-07-15…', latest: '2026-11-19…', … }Every note carries the message id it came from, so a claim is traceable to the post rather than to this package.
The archive begins on 2021-07-15, the oldest post in the channel. whenIntroduced returning
null means not in this archive, not this never existed.
A note mentioning a mechanic is not evidence the mechanic changed. searchPatchNotes is a
text search over announcements: it finds leads, and the note still has to be read.
version is null on 68 of the 261 notes, because those notes state no version. It is not
inferred from the notes around it — a wrong version attached to a real change reads as fact.
pnpm patch-notes:ingest # read-only, resumable; needs DISCORD_TOKEN (see below)
pnpm patch-notes:build # regenerate the shipped datasetBoth refuse rather than write something wrong. The ingest stops if the messages come back empty —
most notes are forwarded, and a forward carries its text in message_snapshots, not in
content. The build stops if more than half the notes land on one day, which is what dating by
the forward instead of the original looks like, and it stops if a version falls outside the range
the game has ever used.
@beardedunicorn/thetowersdk/knowledge also carries a patch-notes compartment describing those traps, so an
agent asking when did this change meets the dating rule before it reaches a date.
The ingest reads one channel of the official server,
#patch-notes, over
Discord's HTTP API. Discord is the only source, so the ingest needs a bot token in the
DISCORD_TOKEN environment variable. It must be a bot's token: the script sends it as
Authorization: Bot … and does not work with, or automate, a personal account.
Getting a token. The steps follow Discord's Getting Started guide:
- In the Developer Portal, create an app. A new app comes with a bot user; its settings are on the app's Bot page.
- On the Bot page, under Token, click Reset Token and copy the token. Discord will not show it again; the only way to recover a lost token is to reset it, which invalidates the old one.
- On the same page, under Privileged Gateway Intents, enable the Message Content intent.
Without it Discord returns every message with empty
content,embedsandattachments, over the HTTP API as well as the Gateway, and the ingest stops with "the archive looks wrong". Apps with fewer than 10,000 users can enable it themselves; larger or verified apps need Discord's approval (Gateway: privileged intents). - The bot must be a member of the official server, with View Channel and Read Message
History on the patch-notes channel. Discord requires
VIEW_CHANNELto read a channel's messages and returns none withoutREAD_MESSAGE_HISTORY(Get Channel Messages).
Step 4 is the one you cannot do alone. A bot is added to a server by a member who holds
Manage Server (MANAGE_GUILD) there, so only the official server's admins can add one. In
practice this means using the token of a bot that is already a member of that server and can
read the channel. A freshly created bot gets 403 from the ingest until it is.
Configuring it here. Copy the committed template and fill in the one variable:
cp .env.example .env# .env — at the package root, gitignored
DISCORD_TOKEN=your-bot-tokenThe ingest script reads .env itself; nothing else needs to load it. A variable exported in the
shell also works and takes precedence over the file:
DISCORD_TOKEN=your-bot-token pnpm patch-notes:ingestThen run:
pnpm patch-notes:ingest # fetches the channel into data/patch-notes/raw-messages.json (gitignored)
pnpm patch-notes:build # regenerates src/knowledge/generated/patch-notes.generated.tsThe build derives the dataset purely from the raw archive, so let the ingest finish first. On a machine with no archive the first ingest fetches the whole channel; a build from a half-fetched archive would drop notes.
Never commit or share the token. It is a password: anyone holding it controls the bot.
.env is in .gitignore and only the value-free .env.example is committed. The script never
prints, logs or stores the token. If it leaks, reset it on the Bot page straight away.
Generated from TheTowerSDK — do not edit here. Docs and live demos: https://beardedunicorn.github.io/TheTowerSDK/
- Workshop
- Workshop Enhancements
- Labs
- Cards
- Modules
- Module Rarities and Merging
- Module Substats
- Module Upgrade Costs
- Ultimate Weapons
- Ultimate Weapon Plus
- Bots
- Guardian
- Relics
- Themes
- Tiers
- Battle Conditions
- Enemies
- Perks
- Tournaments
- Milestones
- The Vault
- Daily Missions
- Guild
- Currencies
- Reference Tables
- Glossary
- Irreversible Upgrades
- Game Patch Notes
- Game Version History
SDK
- Quick Start
- Entry Points
- How It Fits Together
- Getting an Official Game Export
- Reading a Save
- Reading The Community Wiki
- Game 29.1 Data
- Formulas
- Builders
- Charts
- Effective Paths
- Examples
- Templates
- Building a Bot On This
- Google Sheets
- Desktop and Mobile
- Optional Add-ons
- Using It With An AI Agent
- Using Your Own Artwork
- Names And Acronyms
- Patch Notes
- Accuracy
- Versioning
- Where the Docs Live
- Contributing
- Credits
- License
Guides
Examples
- 01-browse-game-data.ts
- 02-read-a-save-file.ts
- 03-plan-upgrades-from-a-save.ts
- 04-generate-a-chart.ts
- 05-generate-a-cost-table.ts
- 06-read-the-community-wiki.ts
- 07-format-like-the-game.ts
- 08-build-a-calculator.ts
- 09-build-a-bot.ts
- 10-read-a-sheet.ts
- 11-build-a-knowledge-base.ts
- 12-show-module-and-card-art.ts
Templates