Skip to content

Commit

Permalink
Adding logs to userInteractions
Browse files Browse the repository at this point in the history
  • Loading branch information
karntrehan committed Sep 26, 2024
1 parent 873712c commit d88594d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cogs/userInteractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def __init__(self, discord_userdata):
class UserHandler(commands.Cog):
def __init__(self, bot) -> None:
self.bot = bot
self.update_contributors.start()

@commands.command(aliases=["badges"])
async def list_badges(self, ctx):
Expand Down Expand Up @@ -210,14 +211,13 @@ async def update_contributors(self):
contributor_role = guild.get_role(VERIFIED_CONTRIBUTOR_ROLE_ID)
count = 1
for contributor in contributors:
print(count)
print("Member count: "+count)
count += 1
member = guild.get_member(contributor["discord_id"])
if member and contributor_role not in member.roles:
# Give Contributor Role
print(member.name)
await member.add_roles(contributor_role)
print(f"Given Roles to {member.name if member else 'None'}")
print(f"Given Roles to {member.name if member else 'None'}")
return

@commands.command()
Expand Down

0 comments on commit d88594d

Please sign in to comment.