fork of https://f-hub.org/XMPP/xmpp-discord-bridge
at dc5621d6c1c7dba1398e7fe90c69483902739a2b 68 lines 2.5 kB view raw
1[general] 2jid = "discord.example.com" # JID of the server component 3jabber_nick = "Bot" # Nick of the bridge bot in the MUC 4secret = "" # Component secret 5secret_file = "" # Optional: Read the secret from a file 6server = "example.com" # Address of the actual XMPP server 7port = "5347" # Component port 8discord_token = "" # Token of your Discord bot 9discord_token_file = "" # Optional: Read the token from a file 10 11# If a message is reacted to, send the following to the MUC: 12# > [Message content] 13# + :someemoji: 14reactions_compat = true 15 16# Use the XMPP user's avatar in the webhook. For options, see 17# the [avatars] section 18relay_xmpp_avatars = false 19 20# When a user is mentioned, also add the display name infront of the message body, e.g. 21# SomeUser, PapaTutuWawa: Hello @SomeUser and @PapaTutuWawa 22muc_mention_compat = true 23 24# If true, then xmpp-discord-bridge will also make offline Discord users appear in the MUC. 25# If they are offline, then they will have a presence of "xa". If false, then offline users 26# will leave the MUC. 27dont_ignore_offline = true 28 29# If true, when receiving a file to embed in Discord, the bridge will remove the URL from 30# the content, leaving only the embed behind. This prevents Discord users who disabled 31# link previews from viewing the embed. 32remove_url_on_embed = true 33 34# When sending files from Discord to XMPP, proxy the URLS with this template. "<hmac>" and 35# and "<url>" will be substituted. Proxy will not be used if not set. 36proxy_discord_urls_to = "https://proxy.example.com/<hmac>/<url>" 37 38# Secret for the proxy. Only used when the proxy is used. 39hmac_secret = "" 40 41# Optional: Read the hmac_secret from a file 42hmac_secret_file = "" 43 44# Set to false to prevent the Discord channel description from being mirrored to the MUC ubject. 45mirror_subject = true 46 47# Set to false to prevent the Discord guild avatar from being copied to the MUC avatar. 48mirror_icon = true 49 50[avatars] 51# Path where avatars can be stored. Make sure it is writable by the user the bridge is running under 52# and readable by your http service. 53path = "/var/www/html/avatars" 54 55# URL on which the avatars will be available 56url = "https://example.com/avatars/" 57 58[discord] 59# There can be multiple [[discord.channels]] sections to bridge multiple MUCs and channels together. 60[[discord.channels]] 61guild = 000000000 62 63channel = 000000000 64 65# The ID of the guild 66# The ID of the channel to mirror 67# The MUC to mirror into 68muc = "channel@muc.example.com"