Repository navigation
Foundry Setup
Do this once per world, as a GM: Configure Settings → Squire → Set up Discord.

Discord IDs replaced with placeholders.
-
Bot URL, e.g.
https://my-bot.example.comorhttp://localhost:8787. -
Bot token: the bot's
FOUNDRY_TOKEN.
Both are stored only in this browser, not in the world. Set them in the browser you GM from. Only the primary GM's browser syncs; if several GMs are online, the first active one does it.
List the Discord channel IDs where players roll for this world. Threads inside those channels count automatically. Run /link in a channel to see its ID.
How the bot picks the campaign for a roll:
- the channel, or a thread's parent channel, listed in a world's setup;
- if only one world has no channels set, it handles every unlinked channel;
- otherwise the bot replies that the channel isn't linked, and shows its ID.
This is how one bot serves several campaigns, and even several systems.
For each player, enter their Discord user ID (/link shows it to them) and pick the character. It defaults to the user's assigned character.
- Each Discord user can have one character per campaign.
- GMs don't need a character. They can roll as any synced PC and as creatures with Who rolls? in the
/rollform (see GM Guide).
Click Save. That syncs immediately.
After the first save, the module re-syncs automatically (about 10 seconds after the last change) while a GM is online. A sync happens when:
- a linked character or its items change;
- tokens on the active scene are added, moved, changed or removed;
- the active scene changes.
Creatures on the active scene are synced as possible targets, with their AC, saves, conditions and their own rolls.
Sync now in the setup window forces a sync.
| Setting | Default | What it does |
|---|---|---|
| Sync character stats to Discord | on | Turns automatic syncing on or off. |
| Import Discord rolls into chat | on | Posts every Discord roll into this world's chat when a GM opens it. Secret rolls are whispered to GMs. |
| Share scenes with Discord | on | Sends the active scene and the scenes in the navigation bar to the bot for /map (the GM can switch between them there): the map area (background and visible tiles below the roofs), walls and doors, lights, darkness and Global Illumination, and visible tokens with their images, Speed, vision, light, facing and senses, plus the linked players' explored fog. Hidden tokens and tiles are never sent. A scene re-syncs a few seconds after one of its tokens, walls, lights or tiles changes; backgrounds are sent again only when they change. Square grids only. |
| Upload compendiums for /search | on | Uploads the searchable compendiums to the bot when the game system, one of their modules or the choice changes. |
Configure Settings → Squire → Choose compendiums picks which item compendiums players can read with /search. By default: the game system's item compendiums (spells, feats, equipment, actions, conditions…), without effects, bestiaries and adventure content. Tick your homebrew compendiums to add them.
Players can read everything in a ticked compendium, so leave out anything that would spoil the adventure. Text the system marks GM-only (PF2e's secret blocks) is never uploaded.
Save and upload saves the choice and uploads at once; Upload now uploads again (e.g. after editing a world compendium). The window shows the last upload: how many entries, from how many compendiums. A full PF2e upload takes a little while; Foundry keeps working meanwhile.
Without this, the module uploads by itself about 20 seconds after the world loads, but only when something changed: the system's version, a chosen compendium's module version, or the choice. Edits inside a world compendium need Upload now.
Disconnect this world in the setup window removes the world's snapshot from the bot and turns off its auto-sync. It's handy for test worlds.
Every 20 seconds the GM's browser:
- carries out what was approved in Discord: damage, healing, conditions, initiative, Hero Points / Inspiration, dying and death saves;
- imports new Discord rolls into chat.
That's why those changes happen only while a GM has the world open. They wait in the bot until then. See How It Works.
Getting started
- Installation
- Bot Setup
- Hosting (Forge, cloud, VPS)
- Foundry Setup
Using it
Systems
Reference