use shorter labels for remote user nicks

This commit is contained in:
Ilya Ivanov 2020-05-15 17:45:48 +07:00
parent b25813cabf
commit 48600ebe1b
2 changed files with 8 additions and 1 deletions

View File

@ -27,3 +27,7 @@ matterbridge_config:
channel: "##my-other-community" channel: "##my-other-community"
slack: slack:
channel: random channel: random
mbridge_irc_label: IRC
mbridge_telegram_label: TG
mbridge_discord_label: DSCD

View File

@ -12,6 +12,7 @@ Nick="{{ mbridge_bot_nick }}"
UseSASL=true UseSASL=true
NickServNick="{{ mbridge_bot_nick }}" NickServNick="{{ mbridge_bot_nick }}"
NickServPassword="{{ mbridge_irc_bot_pass }}" NickServPassword="{{ mbridge_irc_bot_pass }}"
Label="{{ mbridge_irc_label }}"
## RELOADABLE SETTINGS ## RELOADABLE SETTINGS
## Settings below can be reloaded by editing the file ## Settings below can be reloaded by editing the file
@ -49,12 +50,14 @@ ShowTopicChange=true
Token="{{ mbridge_discord_bot_token }}" Token="{{ mbridge_discord_bot_token }}"
Server="{{ mbridge_discord_server }}" # picked from guilds the bot is connected to Server="{{ mbridge_discord_server }}" # picked from guilds the bot is connected to
ShowEmbeds=true ShowEmbeds=true
Label="{{ mbridge_discord_label }}"
[telegram.{{ mbridge_bridge_name }}] [telegram.{{ mbridge_bridge_name }}]
#See https://core.telegram.org/bots#6-botfather #See https://core.telegram.org/bots#6-botfather
#and https://www.linkedin.com/pulse/telegram-bots-beginners-marco-frau #and https://www.linkedin.com/pulse/telegram-bots-beginners-marco-frau
Token="{{ mbridge_telegram_bot_token }}" Token="{{ mbridge_telegram_bot_token }}"
MessageFormat="MarkdownV2" MessageFormat="MarkdownV2"
Label="{{ mbridge_telegram_label }}"
# [whatsapp.{{ mbridge_bridge_name }}] # [whatsapp.{{ mbridge_bridge_name }}]
# RemoteNickFormat="@{NICK}: " # RemoteNickFormat="@{NICK}: "
@ -80,7 +83,7 @@ MessageFormat="MarkdownV2"
#The string "{GATEWAY}" (case sensitive) will be replaced by the origin gateway name that is replicating the message. #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 #The string "{CHANNEL}" (case sensitive) will be replaced by the origin channel name used by the bridge
#OPTIONAL (default empty) #OPTIONAL (default empty)
RemoteNickFormat="[{PROTOCOL}] <{NICK}> " RemoteNickFormat="[{LABEL}] <{NICK}> "
#MediaServerUpload (or MediaDownloadPath) and MediaServerDownload are used for uploading #MediaServerUpload (or MediaDownloadPath) and MediaServerDownload are used for uploading
#images/files/video to a remote "mediaserver" (a webserver like caddy for example). #images/files/video to a remote "mediaserver" (a webserver like caddy for example).