fork of https://f-hub.org/XMPP/xmpp-discord-bridge
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, when receiving a file to embed in Discord, the bridge will remove the URL from
25# the content, leaving only the embed behind. This prevents Discord users who disabled
26# link previews from viewing the embed.
27remove_url_on_embed = true
28
29# When sending files from Discord to XMPP, proxy the URLS with this template. "<hmac>" and
30# and "<url>" will be substituted. Proxy will not be used if not set.
31proxy_discord_urls_to = "https://proxy.example.com/<hmac>/<url>"
32
33# Secret for the proxy. Only used when the proxy is used.
34hmac_secret = ""
35
36# Optional: Read the hmac_secret from a file
37hmac_secret_file = ""
38
39# Set to false to prevent the Discord channel description from being mirrored to the MUC ubject.
40mirror_subject = true
41
42# Set to false to prevent the Discord guild avatar from being copied to the MUC avatar.
43mirror_icon = true
44
45[avatars]
46# Path where avatars can be stored. Make sure it is writable by the user the bridge is running under
47# and readable by your http service.
48path = "/var/www/html/avatars"
49
50# URL on which the avatars will be available
51url = "https://example.com/avatars/"
52
53[discord]
54# There can be multiple [[discord.channels]] sections to bridge multiple MUCs and channels together.
55[[discord.channels]]
56guild = 000000000
57
58channel = 000000000
59
60# The ID of the guild
61# The ID of the channel to mirror
62# The MUC to mirror into
63muc = "channel@muc.example.com"