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

Allow mentioning user in the channel welcome messages #55

Open
jfrerich opened this issue Jul 29, 2020 · 0 comments · May be fixed by #130
Open

Allow mentioning user in the channel welcome messages #55

jfrerich opened this issue Jul 29, 2020 · 0 comments · May be fixed by #130
Labels
Difficulty/2:Medium Medium ticket Tech/Go Type/Enhancement New feature or improvement of existing feature Up For Grabs Ready for help from the community. Removed when someone volunteers

Comments

@jfrerich
Copy link
Contributor

jfrerich commented Jul 29, 2020

When configuring Team welcome messages, the config allows referencing fields from the MessageTemplate struct. However, setting a welcome message through /welcomebot set_channel_welcome only allows text. This ticket is asking to allow accessing the members of the MessageTemplate struct while creating a channel welcomebot message.

type MessageTemplate struct {
    WelcomeBot      *model.User
    User            *model.User
    Team            *model.Team
    Townsquare      *model.Channel
    DirectMessage   *model.Channel
    UserDisplayName string
}

The implementation is up for discussion, but one idea is to somehow incorporate inline templating similar to the usage found in the config.

Example: "### Welcome {{.UserDisplayName}} to the Staff {{.Team.DisplayName}} team!",

@jfrerich jfrerich added Up For Grabs Ready for help from the community. Removed when someone volunteers Tech/Go Difficulty/2:Medium Medium ticket Type/Enhancement New feature or improvement of existing feature labels Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty/2:Medium Medium ticket Tech/Go Type/Enhancement New feature or improvement of existing feature Up For Grabs Ready for help from the community. Removed when someone volunteers
Projects
None yet
1 participant