title: url detection discord.py
body: <pre><code>    urls = re.findall('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&amp;+]|[!*(),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+',message.content.lower())
      if urls and message.channel.id == &quot;702468264361590828&quot;:
          await message.channel.send(&quot;Links are not allowed in here&quot;)
  </code></pre>
  <p>This is our discord.py bot's code, the command you guys see on top is supposed to detect if a link is sent and then send a message afterwards. But it doesn't detect it. I've put <code>print</code> instead of <code>await message.channel.send(&quot;Links are not allowed in here&quot;)</code> but that didn't work either. I have everything imported. FYI I used this to import <code>re</code>:</p>
  <pre><code>pip install regex
  </code></pre>
  <p>I couldn't find a package named <code>re</code> so I used this</p>