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

Can't use {{.UserDisplayName}} in channel welcome message #96

Open
schlueter-de opened this issue Aug 17, 2022 · 2 comments · May be fixed by #130
Open

Can't use {{.UserDisplayName}} in channel welcome message #96

schlueter-de opened this issue Aug 17, 2022 · 2 comments · May be fixed by #130
Labels
Type/Bug Something isn't working
Milestone

Comments

@schlueter-de
Copy link

schlueter-de commented Aug 17, 2022

Hi,

i can't use {{.UserDisplayName}} in the welcome message. Is it even possible? I tried:

/welcomebot set_channel_welcome :wave_light_skin_tone: Herzlich Willkommen {{.UserDisplayName}} bei uns im Büro. Schön das du dich uns angeschlossen hast. :hugging_face:

Thanks for help.

Regards

@jprusch
Copy link

jprusch commented Aug 17, 2022

Hm,

we're using:

"Message": [
    "### Hallo {{.UserDisplayName}}, willkommen zum Team {{.Team.DisplayName}} in Mattermost!",
    "",
    "Bei Fragen bitte eine Nachricht an ... oder zusammen mit",
    "",
    "Vorschläge und Ideen im Kanal ~help",
    "",
    "Du bist automatisch in folgende Kanäle aufgenommen worden:",
    "",
    "~town-square - Das **schwarze Brett**",
    "~help - Fragen, Anregungen und Ideen!"
],

And this is working. Extract from config.json.

@schlueter-de
Copy link
Author

Hi @jprusch
i bet that is the welcom message for new users in the team right?

I mean the /welcomebot set_channel_welcome [welcome-message]. That not the Welcomebot direct message. It a Channelmessage for a specific channel. Its working but i want to mention the User in the message. But maybe this is not in the featurelist and {{.UserDisplayName}} is just working in the welcomebot config.json.

@Kshitij-Katiyar Kshitij-Katiyar added this to the v1.4.0 milestone Apr 12, 2024
@Kshitij-Katiyar Kshitij-Katiyar added the Type/Bug Something isn't working label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type/Bug Something isn't working
Projects
None yet
3 participants