From 923820c45f34e0b7daf94e1b763491b1fef9e58b Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sat, 4 Jul 2020 22:33:49 +0100 Subject: [PATCH] Adding commentary --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 9ee434b9..d12a87fc 100644 --- a/main.py +++ b/main.py @@ -57,11 +57,14 @@ async def ping(ctx): # Bot event for new member joining, sending an embed introducing them to the server @client.event async def on_member_join(member): - # Set the channel id to "newpeople" + # Get the guild guild = member.guild + + # Make sure the guild is Enso if guild.id != 663651584399507476: return else: + # Set the channel id to "newpeople" new_people = guild.get_channel(669771571337887765) # Set the enso server icon and the welcoming gif