Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom welcome messages #58

Merged
merged 2 commits into from
Oct 23, 2021
Merged

Add support for custom welcome messages #58

merged 2 commits into from
Oct 23, 2021

Conversation

justinbot
Copy link
Contributor

@justinbot justinbot commented Oct 22, 2021

Spun out of mautrix/signal#139

Example configuration for a bridge to replace the generic default messages:

    # Messages sent upon joining a management room.
    # Markdown is supported. The defaults are listed below.
    management_room_text:
        # Sent when joining a room.
        welcome: "Hello, I'm a Signal bridge bot."
        # Sent when joining a management room and the user is already logged in.
        welcome_connected: "Use `help` for help."
        # Sent when joining a management room and the user is not logged in.
        welcome_unconnected: "Use `help` for help or `register` to log in."
        # Optional extra text sent when joining a management room.
        # additional_help: "This would be some additional text in case you need it."

    # Send each message separately (for readability in some clients)
    management_room_multiple_messages: false

mautrix/bridge/matrix.py Outdated Show resolved Hide resolved
mautrix/bridge/matrix.py Outdated Show resolved Hide resolved
Copy link
Member

@tulir tulir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@tulir tulir merged commit 99e7a17 into mautrix:master Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants