wop commited on
Commit
8278126
·
verified ·
1 Parent(s): f89fe52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -50,9 +50,10 @@ async def on_ready():
50
  print("------")
51
 
52
 
53
- @bot.event
54
- async def on_member_join(member):
55
- await member.send('Private message')
 
56
 
57
 
58
  # running in thread
 
50
  print("------")
51
 
52
 
53
+ @client.event
54
+ async def on_member_join(mb):
55
+ channelv0 = discord.utils.get(mb.guild.channels, name = "👋wellcome-goodbye")
56
+ await channelv0.send(f"Welcome to server, <@{mb.id}>")
57
 
58
 
59
  # running in thread