File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -346,14 +346,14 @@ async def save_guilds(self):
346
346
@commands .Cog .listener ()
347
347
async def on_guild_join (self , guild : discord .Guild ):
348
348
# 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
350
350
await self .client .update_presence ()
351
351
await Guild .add_default (guild .id , guild .member_count )
352
352
353
353
@commands .Cog .listener ()
354
354
async def on_guild_remove (self , guild : discord .Guild ):
355
355
# Changing Killua's status
356
- if self .client .guilds % 10 == 0 :
356
+ if len ( self .client .guilds ) % 10 == 0 :
357
357
await self .client .update_presence ()
358
358
await (await Guild .new (guild .id )).delete ()
359
359
await self ._post_guild_count ()
You canāt perform that action at this time.
0 commit comments