Skip to content

Commit 1e455c4

Browse files
author
Kile
committed
šŸ› silly mistake
1 parent 6ce9a65 commit 1e455c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ā€Žkillua/cogs/events.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,14 +346,14 @@ async def save_guilds(self):
346346
@commands.Cog.listener()
347347
async def on_guild_join(self, guild: discord.Guild):
348348
# Changing the status
349-
if self.client.guilds % 7 == 0: # Different number than on_guild_remove so if someone keeps re-adding the bot it doesn't spam the status
349+
if len(self.client.guilds) % 7 == 0: # Different number than on_guild_remove so if someone keeps re-adding the bot it doesn't spam the status
350350
await self.client.update_presence()
351351
await Guild.add_default(guild.id, guild.member_count)
352352

353353
@commands.Cog.listener()
354354
async def on_guild_remove(self, guild: discord.Guild):
355355
# Changing Killua's status
356-
if self.client.guilds % 10 == 0:
356+
if len(self.client.guilds) % 10 == 0:
357357
await self.client.update_presence()
358358
await (await Guild.new(guild.id)).delete()
359359
await self._post_guild_count()

0 commit comments

Comments
Ā (0)