title: Discord py: How to say hello to a new user?
body: <p>Hello I am starting to program my first bot for discord in python, and I find myself with a small problem and it is that although it seems that the code is correct it seems that it is not doing anything at all.</p>
  <p>The idea is that the bot listens when a new user joins the server and then greets them on a specific channel</p>
  <p>This is the code:
  Edit: I have added the new code that I have right now, however the problem persists, the intirenances are also activated from the discord developer portal.</p>
  <p>I also want to add that the bot has an on_ready with a print (&quot;Is working&quot;) to check if the bot is started correctly.</p>
  <pre><code>import discord
  from discord.ext import commands
  from discord.utils import get
  intents = discord.Intents.default()
  intents.members = True
  
  #Bot prefix
  bot=commands.Bot(command_prefix='&gt;', intents=intents)
  
  #Event
  @bot.event
  async def on_member_join(member):
      get(member.guild.channels, id=768670193379049483)
      await channel.send(f&quot;{member} Welcome&quot;) ```
  
  </code></pre>