Discord Integration is a free, open-source Discord bot for Foundry VTT.
![]()
A small Discord bot that watches a Foundry VTT v13 server running on the same machine and tells your Discord server what is going on.
Foundry VTT: v13 · Node.js: 20 or newer · Discord: slash commands, no message content access needed
Installation
You need a Discord application and bot first; see Discord Application Setup.
On Linux, on the machine that runs Foundry:
curl -fsSL https://raw.githubusercontent.com/dxcufgb/install/main/install.sh | sudo bash -s foundryvtt-discord-integration
On Windows, run foundryvtt-discord-integration-setup.exe from the latest release.
Installer options, the manual download and automatic updates: Install on Linux and Install on Windows in the wiki. Running from source: Configuration Reference.
Features
- Discord Application Setup: Before installing, create a Discord application and bot at <https://discord.com/developers/applications> (the Discord Developer Portal).
- Install on Linux: You need the Application ID and bot token from Discord Application Setup first.
- Install on Windows: You need the Application ID and bot token from Discord Application Setup first.
- Messages and Channels: The bot posts five types of message:
- Commands: Everything is configured from Discord with slash commands.
- Campaigns and Sessions: Campaigns bind Discord users to worlds: each campaign belongs to one Discord server, is connected to exactly one Foundry world and has exactly one DM; any number of server members can be its players, and a member can be in any number of campaigns.
- Session Summaries: After a played session, the bot can post a short session summary to the campaign's channel.
- Package Updates and Modules: The updates message is posted when Foundry itself, an installed system or an installed module changes version (also newly installed and removed packages, if wanted).
- Admin Page: An optional, password-protected web page, like the admin pages of the Foundry world backup and the release proxy, shows the bot's state and changes its settings without Discord:
- Automatic Updates: Opt-in, off by default: both installers offer to check GitHub once a day and install a newer release the same way as a manual upgrade, keeping .env and the data folder.
- Configuration Reference: All settings are environment variables, read from .env (see .env.example):
- How It Works: See the Configuration Reference for FOUNDRY_URL, FOUNDRY_DATA_PATH, POLL_INTERVAL_SECONDS, DOWN_AFTER_FAILURES and BOT_DATA_DIR.
Documentation
The full Discord Integration guide: overview.