Automatically send private message when users reaches a new trust level

(Dylan Damsma) #1

Hi there,

We have a discourse forum and a slack and would love to invite people to our slack only when they have reached trust level 2.

I would love to be able to automically send a DM once someone reaches trust level 2 with an invitation link to slack. How can I configure this in Discourse?


(Mittineague) #2

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

(Dylan Damsma) #3

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

(Erlend Sogge Heggen) #4

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.

(Jeff Atwood) #5

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

(Dylan Damsma) #6

@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?

(Mittineague) #7

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