Skip to content

Commit

Permalink
Fixing on_member_update roles
Browse files Browse the repository at this point in the history
  • Loading branch information
sinsniwal committed Jun 2, 2024
1 parent 76e80d5 commit 15c65e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cogs/reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ async def on_member_update(self, before: discord.Member, after: discord.Member):
if added.id == self.roles["ds"]["Enthusiast"]:
await after.add_roles(discord.Object(id=self.roles["ds"]["Qualifier"]))
elif added.id == self.roles["es"]["Enthusiast"]:
await after.remove_roles(discord.Object(id=self.roles["es"]["Qualifier"]))
await after.add_roles(discord.Object(id=self.roles["es"]["Qualifier"]))
else:
pass
except:
Expand All @@ -612,6 +612,7 @@ async def on_member_update(self, before: discord.Member, after: discord.Member):
except:
pass

@commands.Cog.listener()
async def on_member_join(self, member: discord.Member):
"""
When a member joins, send them a message with the rules and give them the role "Verified".
Expand Down
1 change: 0 additions & 1 deletion cogs/verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ async def send_to_admin(self, message):

@commands.Cog.listener()
async def on_message(self, message: discord.Message):
print(message.content)
if message.channel.id != config.AUTOMATE_CHANNEL:
return

Expand Down

0 comments on commit 15c65e7

Please sign in to comment.