From d88594db87e9bd2e8363c4966fac50713882632c Mon Sep 17 00:00:00 2001 From: karntrehan Date: Thu, 26 Sep 2024 13:14:57 +0530 Subject: [PATCH] Adding logs to userInteractions --- cogs/userInteractions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/userInteractions.py b/cogs/userInteractions.py index 751b144..7826819 100644 --- a/cogs/userInteractions.py +++ b/cogs/userInteractions.py @@ -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): @@ -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()