Escape dollar signs in config template to prevent variable expansion
This commit is contained in:
@@ -202,21 +202,43 @@ bridge:
|
|||||||
bridge_notices:
|
bridge_notices:
|
||||||
default: false
|
default: false
|
||||||
exceptions: []
|
exceptions: []
|
||||||
relay_user_distinguishers: [🟦, 🟣, 🟩, ⭕️, 🔶, ⬛️, 🔵, 🟢]
|
relay_user_distinguishers: ["🟦", "🟣", "🟩", "⭕️", "🔶", "⬛️", "🔵", "🟢"]
|
||||||
|
# The formats to use when sending messages to Telegram via the relay bot.
|
||||||
|
# Text msgtypes (m.text, m.notice and m.emote) support HTML, media msgtypes don't.
|
||||||
|
#
|
||||||
|
# Available variables:
|
||||||
|
# \$sender_displayname - The display name of the sender (e.g. Example User)
|
||||||
|
# \$sender_username - The username (Matrix ID localpart) of the sender (e.g. exampleuser)
|
||||||
|
# \$sender_mxid - The Matrix ID of the sender (e.g. @exampleuser:example.com)
|
||||||
|
# \$distinguisher - A random string from the options in the relay_user_distinguishers array.
|
||||||
|
# \$message - The message content
|
||||||
message_formats:
|
message_formats:
|
||||||
m.text: '$distinguisher <b>$sender_displayname</b>: $message'
|
m.text: '\$distinguisher <b>\$sender_displayname</b>: \$message'
|
||||||
m.notice: '$distinguisher <b>$sender_displayname</b>: $message'
|
m.notice: '\$distinguisher <b>\$sender_displayname</b>: \$message'
|
||||||
m.emote: '* $distinguisher <b>$sender_displayname</b> $message'
|
m.emote: '* \$distinguisher <b>\$sender_displayname</b> \$message'
|
||||||
m.file: '$distinguisher <b>$sender_displayname</b> sent a file: $message'
|
m.file: '\$distinguisher <b>\$sender_displayname</b> sent a file: \$message'
|
||||||
m.image: '$distinguisher <b>$sender_displayname</b> sent an image: $message'
|
m.image: '\$distinguisher <b>\$sender_displayname</b> sent an image: \$message'
|
||||||
m.audio: '$distinguisher <b>$sender_displayname</b> sent an audio file: $message'
|
m.audio: '\$distinguisher <b>\$sender_displayname</b> sent an audio file: \$message'
|
||||||
m.video: '$distinguisher <b>$sender_displayname</b> sent a video: $message'
|
m.video: '\$distinguisher <b>\$sender_displayname</b> sent a video: \$message'
|
||||||
m.location: '$distinguisher <b>$sender_displayname</b> sent a location: $message'
|
m.location: '\$distinguisher <b>\$sender_displayname</b> sent a location: \$message'
|
||||||
emote_format: '* $mention $formatted_body'
|
# Telegram doesn't have built-in emotes, this field specifies how m.emote's from authenticated
|
||||||
|
# users are sent to telegram. All fields in message_formats are supported. Additionally, the
|
||||||
|
# Telegram user info is available in the following variables:
|
||||||
|
# \$displayname - Telegram displayname
|
||||||
|
# \$username - Telegram username (may not exist)
|
||||||
|
# \$mention - Telegram @username or displayname mention (depending on which exists)
|
||||||
|
emote_format: '* \$mention \$formatted_body'
|
||||||
|
|
||||||
|
# The formats to use when sending state events to Telegram via the relay bot.
|
||||||
|
#
|
||||||
|
# Variables from `message_formats` that have the `sender_` prefix are available without the prefix.
|
||||||
|
# In name_change events, `\$prev_displayname` is the previous displayname.
|
||||||
|
#
|
||||||
|
# Set format to an empty string to disable the messages for that event.
|
||||||
state_event_formats:
|
state_event_formats:
|
||||||
join: $distinguisher <b>$displayname</b> joined the room.
|
join: \$distinguisher <b>\$displayname</b> joined the room.
|
||||||
leave: $distinguisher <b>$displayname</b> left the room.
|
leave: \$distinguisher <b>\$displayname</b> left the room.
|
||||||
name_change: $distinguisher <b>$prev_displayname</b> changed their name to $distinguisher <b>$displayname</b>
|
name_change: \$distinguisher <b>\$prev_displayname</b> changed their name to \$distinguisher <b>\$displayname</b>
|
||||||
filter:
|
filter:
|
||||||
mode: blacklist
|
mode: blacklist
|
||||||
list: []
|
list: []
|
||||||
|
|||||||
Reference in New Issue
Block a user