Analecta

A Discord bot for a Pathfinder 2e gaming group. It answers rules questions with a link to the source on Archives of Nethys, and questions about the group's campaign from exported Markdown notes.

Analecta is a Discord bot for a Pathfinder 2e gaming group. It answers rules questions with a link to the source on Archives of Nethys, and answers questions about the group’s campaign from an exported folder of Markdown notes. It is not published, endorsed, or specifically approved by Paizo.

Who it’s for

Anyone who runs or plays in a Pathfinder 2e game and keeps campaign notes in Markdown (for example, in Obsidian). The repository includes a set-up-from-scratch guide for running your own copy.

What it does

  • Rules answers with sources. It looks rules up live on Archives of Nethys and links to the exact page.
  • Campaign questions from your notes. It searches and reads the exported notes, and can follow links between notes to answer questions about people and relationships.
  • Dice and character sheets. Slash commands handle these in plain code, without a language model.
  • Corrections from the group. Players can correct an answer, and later answers take the correction into account.
  • Control over what it can see. What the bot knows is decided by what the export script writes, so hidden notes and secret sections never reach it.

How it’s built

It is a Python bot that runs as a service on a small server. Campaign notes are exported from a local folder and synced to the server, and an OpenAI model writes the answers. The model sits behind a small provider interface, so it can be swapped.

Tech stack

  • Python
  • Discord
  • OpenAI
  • Syncthing
  • Markdown notes

Tags

  • discord
  • ai
  • ttrpg
  • pathfinder
  • obsidian

← All projects