Spaces:
Paused
Paused
Update app.py
Browse files
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:
|