mattermost-community / mattermost-plugin-welcomebot

Apache License 2.0
64 stars 41 forks source link

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

Open schlueter-de opened 1 year ago

schlueter-de commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.