Projects / Frotz Bot

Frotz Bot

Frotz Bot hosts text adventures on Discord. Start a game and the bot opens a thread; everything you type there goes to the game, and the game's replies come back as messages. Each game gets its own thread, so several can run at once.

The games run on rezrov-zmachine, a Z-machine interpreter inside the bot, so nothing else needs to be installed.

What it does

  • Saves: use the game's own save, restore, undo and quit. Saves use the standard Quetzal format, so saves from other interpreters, Frotz included, can be restored. Games are saved automatically when a thread is archived, a game goes idle, or the bot stops.
  • Slash commands: /games, /start, /restore, /pause and /status, plus admin commands to see and stop every running game.
  • Status line: it is shown above a reply whenever it changes.
  • Press-any-key prompts: the bot adds a Continue button, since Discord has no key presses.

Which games work

Z-machine version Support Notes
1 to 3 (most Infocom games) Full The status line is shown above each reply.
4 and 5 Limited Upper-window text is sent as a code block. There is no color, graphics, sound or timed input.
6 and later None These games depend on graphics a chat message cannot show.

A companion app built on the Discord Embedded App SDK is planned to handle the rest, but it does not exist yet.

Run your own

You need Node.js 22.12 or later, a Discord bot account with the Message Content intent, and your own story files. The README walks through setup.