wop commited on
Commit
a936ad9
·
verified ·
1 Parent(s): dbaa346

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -50,6 +50,14 @@ async def on_ready():
50
  print("------")
51
 
52
 
 
 
 
 
 
 
 
 
53
  @bot.event
54
  async def on_message(message):
55
  if message.channel.id == 1210559547874222083 and not message.author.bot:
 
50
  print("------")
51
 
52
 
53
+ @bot.event
54
+ async def on_member_join(member):
55
+ for channel in member.guild.text_channels:
56
+ if channel.permissions_for(member.guild.me).send_messages:
57
+ await channel.send(f"Welcome {member.mention} to our server!")
58
+ break
59
+
60
+
61
  @bot.event
62
  async def on_message(message):
63
  if message.channel.id == 1210559547874222083 and not message.author.bot: