title: discord bot that replies to people with specific roles python
body: <p>I have a bot that currently does nothing other than keep itself hosted online</p>
  <p>I have tried finding an answer to this but everything is for Javascript</p>
  <p>basically what I'm looking for is a bot that:</p>
  <p>When someone sends a message detect if he has role &quot;X&quot;
  If he has role &quot;X&quot; reply with a prewritten message</p>
  <p>for example, if someone has a role named &quot;PlaysROR2&quot;
  whenever he types the word game the bot will send the message ROR2</p>
  <p>I'm new to making discord bots and python in general so the more specific the answer the better
  from what I understood there's no Has_role function so it's pretty complicated</p>