Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions am_bot/cogs/server_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ async def update_member_count(self):
self.guild = self.guild or self.bot.get_guild(GUILD_ID)
channel = await self.bot.fetch_channel(MEMBERS_COUNT_CHANNEL_ID)
member_count = len(self.guild.members)
await channel.edit(name=f"🔹┇{member_count}members")
await channel.edit(name=f"🔹┇{member_count}members")
logger.info(f"Updated member count: {member_count}")

async def update_boost_count(self):
self.guild = self.guild or self.bot.get_guild(GUILD_ID)
channel = await self.bot.fetch_channel(BOOSTS_COUNT_CHANNEL_ID)
boost_count = self.guild.premium_subscription_count
await channel.edit(name=f"🔸┇{boost_count}boosts")
await channel.edit(name=f"🔸┇{boost_count}boosts")
logger.debug(f"Updated boost count: {boost_count}")

async def update_role_counts(self):
Expand All @@ -54,12 +54,12 @@ async def update_role_counts(self):
modder_channel = await self.bot.fetch_channel(MODDER_STATS_CHANNEL_ID)
modder_role = self.guild.get_role(MODDER_ROLE_ID)
modder_count = len(modder_role.members)
await modder_channel.edit(name=f"🔸┇{modder_count}modders")
await modder_channel.edit(name=f"🔸┇{modder_count}modders")

mapper_channel = await self.bot.fetch_channel(MAPPER_STATS_CHANNEL_ID)
mapper_role = self.guild.get_role(MAPPER_ROLE_ID)
mapper_count = len(mapper_role.members)
await mapper_channel.edit(name=f"🔹┇{mapper_count}mappers")
await mapper_channel.edit(name=f"🔹┇{mapper_count}mappers")

logger.info(
f"Updated role counts: {modder_count} modders, "
Expand Down