Channel Management Through Bot Commands #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Instead of needing to configure the channel mapping through a config file, we should be able to use bot commands to add and remove links between matrix and discord channels.
Shipped in v0.3.0-alpha.8 — bridges can now be managed over Matrix DM instead of editing files.
What landed
A new optional
[management]config block starts a management bot on the appservice bot account (own device + store, Olm-capable so encrypted DMs work). It auto-joins room invites only from allowlisted operator MXIDs and serves:link <name> <matrix-room-id> <discord-guild-id> <discord-channel-id> [server]unlink <name>list(statics + tenants, with running status)helpCommands atomically rewrite
tenants.tomlviatoml_edit(operator comments/hand-edits survive) and trigger the same in-process reconcile SIGHUP uses (#45), over a new supervisor control channel with per-request replies — one lifecycle code path no matter who initiates. A rejected reconcile rolls the file back, so the file never lies about the running set. With[management]configured, a zero-[[bridge]]config is a valid boot: a hosted deployment can start empty and be provisioned entirely over DM.Verified live (2026-07-05, staging on the prod host)
Notes
b4407df(config + tenants.toml edit helpers),37ed0f3(bot + supervisor control channel),dbb48c9(wiring + docs).Remaining multi-tenant auth/hardening (two-sided authority, room-prereq detection, quotas) is #47.