You need the Application ID and bot token from Discord Application Setup first. Full guide: docs/INSTALL.md.
Install
On the machine that runs Foundry:
curl -fsSL https://raw.githubusercontent.com/dxcufgb/install/main/install.sh | sudo bash -s foundryvtt-discord-integration
or download foundryvtt-discord-integration-linux.tar.gz from the latest release, then:
tar xzf foundryvtt-discord-integration-linux.tar.gz
cd foundryvtt-discord-integration-X.Y.Z
sudo ./install.sh
(The older one-liner curl -fsSL https://github.com/dxcufgb/FoundryVTT-discord-integration/releases/latest/download/install.sh | sudo bash still works too.)
The guided installer checks for Node.js, finds your running Foundry server to suggest its user, port and data folder, asks for the Discord token and IDs, and installs a systemd service.
Installer options
sudo ./install.sh --help lists them all. With the one-liner put them after the slug, e.g. … | sudo bash -s foundryvtt-discord-integration --check-update.
| Option | Meaning |
|---|---|
| (none) | install or upgrade in place, interactive (asks for what it needs) |
--yes, -y |
non-interactive: no questions; missing required settings → clear error |
--auto-update / --no-auto-update |
turn automatic updates on / off as part of this install |
--enable-auto-update / --disable-auto-update |
turn them on / off on an existing install, nothing else |
--check-update |
only check: exit 0 = up to date, 10 = newer release available, other = error |
--update-now |
install the latest release now (same path as the daily updater) |
--uninstall [--purge] |
remove (keep / also delete settings and data) |
--help |
usage listing exactly these first, then the bot's own options |
The bot's own options: --token, --client-id, --guild-id, --data-path, --app-path, --url, --user, --dir, --timezone, --interval, --no-start, --version and --non-interactive (same as --yes); see docs/INSTALL.md.
See Automatic Updates for what the update options do, and the Configuration Reference for the settings in .env.
After installing
In Discord, run /channel set type:default in the channel where messages should go, and fine-tune with the commands. See Messages and Channels.
This page mirrors the Discord Integration wiki on GitHub.