title: How do I make my Python discord bot give roles on join?
body: <p>I have a bot that I'm trying to make better. It's called moderator bot and I'm working on adding new commands. I just can't find the code anywhere.</p>
  
  <p>How do I get moderator bot to give user roles when they join the server. And how do I make it configurable by the server owner so that the bot can be used over different servers? </p>
  
  <p>I also want it to DM the owner commands so they can see it along with only owner-set roles being able to access that command. </p>
  
  <p>It sounds advanced and probably is, but can someone out there write the code for me or tell me how to make that?</p>