Skip to content

Patch Notes

github-actions[bot] edited this page Nov 25, 2026 · 2 revisions

Generated from the thetowersdk repository. Edits made here are overwritten on the next push — change the source file instead.

Patch Notes

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.

What it will not tell you

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.

Keeping it current

pnpm patch-notes:ingest   # read-only, resumable; needs DISCORD_TOKEN (see below)
pnpm patch-notes:build    # regenerate the shipped dataset

Both 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.

Patch notes: Discord token

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:

  1. In the Developer Portal, create an app. A new app comes with a bot user; its settings are on the app's Bot page.
  2. 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.
  3. On the same page, under Privileged Gateway Intents, enable the Message Content intent. Without it Discord returns every message with empty content, embeds and attachments, 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).
  4. 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_CHANNEL to read a channel's messages and returns none without READ_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-token

The 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:ingest

Then 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.ts

The 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.


Clone this wiki locally