Envoyer automatiquement un message privé lorsque les utilisateurs atteignent un nouveau niveau de confiance

Bonjour,

Nous disposons d’un forum Discourse et d’un espace Slack, et nous aimerions inviter des personnes sur notre Slack uniquement lorsqu’elles atteignent le niveau de confiance 2.

Je souhaiterais pouvoir envoyer automatiquement un message privé dès qu’une personne atteint le niveau de confiance 2, contenant un lien d’invitation vers Slack. Comment puis-je configurer cela dans Discourse ?

Cordialement,
Dylan

1 « J'aime »

You could easily create a Trust Level 2 - see permission category with the invite and sign up info as a Pinned topic.

2 « J'aime »

I’m aware, but to me, that lacks personality and I’d love to thank them automatically for being an active member and invite them to the slack chat

There’s no built-in way to do this, but it shouldn’t be hard to make a plugin for this. You can post in our marketplace if it can’t be created internally.

2 « J'aime »

We have discussed sending an automatic “congrats!” PM at trust level 2 and 3, also inviting users to try the advanced discobot tutorial as well @erlend_sh

1 « J'aime »

@codinghorror That be great. For now, is there any way to retrieve a user’s trust level through JS so that we could assign a css class to the <html> tag and show a banner message or button once they reached a certain level?

1 « J'aime »

It should be doable as a plugin if it doesn’t happen in Core. I think you could assign any currentUser property to any tag’s attribute. This is old, crude and not recently tested, but it might help as a start

3 « J'aime »

Ceci est maintenant en place pour le niveau de confiance 1 — FEATURE: send message when a user reaches tl1 · discourse/discourse@41f76a7 · GitHub

Edit : également en place pour le niveau de confiance 2 depuis un certain temps déjà, et les félicitations pour le niveau de confiance 3 (« bienvenue au salon ») sont en place depuis un moment.

6 « J'aime »

Comment puis-je modifier ces messages ? Ils sont excellents, mais nous voulons les aligner sur notre ton de voix. Merci.

3 « J'aime »