################################################################### #IRC section ################################################################### [irc] [irc.{{ mbridge_bridge_name }}] Server="{{ mbridge_irc_network_server }}" UseTLS=true SkipTLSVerify=false Nick="{{ mbridge_bot_nick }}" UseSASL=true NickServNick="{{ mbridge_bot_nick }}" NickServPassword="{{ mbridge_irc_bot_pass }}" ## RELOADABLE SETTINGS ## Settings below can be reloaded by editing the file #Split messages on MessageLength instead of showing the #WARNING: this could lead to flooding #OPTIONAL (default false) MessageSplit=true #ColorNicks will show each nickname in a different color. #Only works in IRC right now. ColorNicks=true #Nicks you want to ignore. #Messages from those users will not be sent to other bridges. #OPTIONAL IgnoreNicks="{{ mbridge_irc_ignore_nicks }}" #Enable to show users joins/parts from other bridges #Currently works for messages from the following bridges: irc, mattermost, slack #OPTIONAL (default false) ShowJoinPart=false #Enable to show topic changes from other bridges #Only works hiding/show topic changes from slack bridge for now #OPTIONAL (default false) ShowTopicChange=true [discord.{{ mbridge_bridge_name }}] # You can get your token by following the instructions on # https://github.com/42wim/matterbridge/wiki/Discord-bot-setup # If you want roles/groups mentions to be shown with names instead of ID, # you'll need to give your bot the "Manage Roles" permission. Token="{{ mbridge_discord_bot_token }}" Server="{{ mbridge_discord_server }}" # picked from guilds the bot is connected to ShowEmbeds=true [telegram.{{ mbridge_bridge_name }}] #See https://core.telegram.org/bots#6-botfather #and https://www.linkedin.com/pulse/telegram-bots-beginners-marco-frau Token="{{ mbridge_telegram_bot_token }}" MessageFormat="MarkdownV2" # [whatsapp.{{ mbridge_bridge_name }}] # RemoteNickFormat="@{NICK}: " # Label="{{ mbridge_whatsapp_label }}" # Number="{{ mbridge_whatsapp_number }}" # SessionFile="{{ mbridge_whatsapp_session_file }}" # QrOnWhiteTerminal=false ################################################################### #General configuration ################################################################### # Settings here are defaults that each protocol can override [general] ## RELOADABLE SETTINGS ## Settings below can be reloaded by editing the file #RemoteNickFormat defines how remote users appear on this bridge #The string "{NICK}" (case sensitive) will be replaced by the actual nick / username. #The string "{BRIDGE}" (case sensitive) will be replaced by the sending bridge #The string "{LABEL}" (case sensitive) will be replaced by label= field of the sending bridge #The string "{PROTOCOL}" (case sensitive) will be replaced by the protocol used by the bridge #The string "{GATEWAY}" (case sensitive) will be replaced by the origin gateway name that is replicating the message. #The string "{CHANNEL}" (case sensitive) will be replaced by the origin channel name used by the bridge #OPTIONAL (default empty) RemoteNickFormat="[{PROTOCOL}] <{NICK}> " #MediaServerUpload (or MediaDownloadPath) and MediaServerDownload are used for uploading #images/files/video to a remote "mediaserver" (a webserver like caddy for example). #When configured images/files uploaded on bridges like mattermost, slack, telegram will be #downloaded and uploaded again to MediaServerUpload URL #MediaDownloadPath is the filesystem path where the media file will be placed, instead of uploaded, #for if Matterbridge has write access to the directory your webserver is serving. #It is an alternative to MediaServerUpload. #The MediaServerDownload will be used so that bridges without native uploading support: #gitter, irc and xmpp will be shown links to the files on MediaServerDownload # #More information https://github.com/42wim/matterbridge/wiki/Mediaserver-setup-%5Badvanced%5D #OPTIONAL (default empty) #MediaServerUpload="https://user:pass@yourserver.com/upload" #OPTIONAL (default empty) #MediaDownloadPath="/srv/http/yourserver.com/public/download" #OPTIONAL (default empty) #MediaServerDownload="https://youserver.com/download" #MediaDownloadSize is the maximum size of attachments, videos, images #matterbridge will download and upload this file to bridges that also support uploading files. #eg downloading from slack to upload it to mattermost # #It will only download from bridges that don't have public links available, which are for the moment #slack, telegram, matrix and mattermost # #OPTIONAL (default 1000000 (1 megabyte)) #MediaDownloadSize=1000000 #MediaDownloadBlacklist allows you to blacklist specific files from being downloaded. #Filenames matching these regexp will not be download/uploaded to the mediaserver #You can use regex for this, see https://regex-golang.appspot.com/assets/html/index.html for more regex info #OPTIONAL (default empty) #MediaDownloadBlacklist=[".html$",".htm$"] ################################################################### #Gateway configuration ################################################################### [[gateway]] name="{{ mbridge_bridge_name }}" enable=true [[gateway.inout]] account="irc.{{ mbridge_bridge_name }}" channel="{{ mbridge_irc_channel }}" [[gateway.inout]] account = "discord.{{ mbridge_bridge_name }}" channel="{{ mbridge_discord_channel }}" [[gateway.inout]] account="telegram.{{ mbridge_bridge_name }}" channel="{{ mbridge_telegram_chat_id }}"