[general] jid = "discord.example.com" # JID of the server component jabber_nick = "Bot" # Nick of the bridge bot in the MUC secret = "" # Component secret secret_file = "" # Optional: Read the secret from a file server = "example.com" # Address of the actual XMPP server port = "5347" # Component port discord_token = "" # Token of your Discord bot discord_token_file = "" # Optional: Read the token from a file # If a message is reacted to, send the following to the MUC: # > [Message content] # + :someemoji: reactions_compat = true # Use the XMPP user's avatar in the webhook. For options, see # the [avatars] section relay_xmpp_avatars = false # When a user is mentioned, also add the display name infront of the message body, e.g. # SomeUser, PapaTutuWawa: Hello @SomeUser and @PapaTutuWawa muc_mention_compat = true # If true, when receiving a file to embed in Discord, the bridge will remove the URL from # the content, leaving only the embed behind. This prevents Discord users who disabled # link previews from viewing the embed. remove_url_on_embed = true # When sending files from Discord to XMPP, proxy the URLS with this template. "" and # and "" will be substituted. Proxy will not be used if not set. proxy_discord_urls_to = "https://proxy.example.com//" # Secret for the proxy. Only used when the proxy is used. hmac_secret = "" # Optional: Read the hmac_secret from a file hmac_secret_file = "" # Set to false to prevent the Discord channel description from being mirrored to the MUC ubject. mirror_subject = true # Set to false to prevent the Discord guild avatar from being copied to the MUC avatar. mirror_icon = true [avatars] # Path where avatars can be stored. Make sure it is writable by the user the bridge is running under # and readable by your http service. path = "/var/www/html/avatars" # URL on which the avatars will be available url = "https://example.com/avatars/" [discord] # There can be multiple [[discord.channels]] sections to bridge multiple MUCs and channels together. [[discord.channels]] guild = 000000000 channel = 000000000 # The ID of the guild # The ID of the channel to mirror # The MUC to mirror into muc = "channel@muc.example.com"