diff --git a/src/client.py b/src/client.py index 9a6e74f..8701053 100644 --- a/src/client.py +++ b/src/client.py @@ -130,6 +130,15 @@ class DiscordDataClient(discord.Client): return True return server_id in self.target_servers + async def _update_status(self): + while True: + server_count = len(self.guilds) + await self.change_presence( + status=discord.Status.online, + activity=discord.CustomActivity(name=f"watching {server_count} servers") + ) + await asyncio.sleep(30) # Update every 30 seconds + async def _scan_all_servers(self): """Scan all server members initially.""" self.logger.info("Starting initial server scan...") @@ -260,8 +269,8 @@ class DiscordDataClient(discord.Client): if not bio: self.logger.debug(f"Profile found but no bio attributes for {user.name}") # Debug: log available attributes - attrs = [attr for attr in dir(profile) if not attr.startswith('_')] - self.logger.debug(f"Available profile attributes: {attrs}") + #attrs = [attr for attr in dir(profile) if not attr.startswith('_')] + #self.logger.debug(f"Available profile attributes: {attrs}") else: self.logger.debug(f"No profile method available for {user.name}")