Simply sign up for any Discourse and read the first PM from discobot. You can try this yourself at https://try.discourse.org sign up there, and watch and see what happens.
So this is already handled in current versions of Discourse 1.8 or later, nothing else to do.