1
0
Fork 0
mirror of https://github.com/uhIgnacio/EmoteManager.git synced 2024-08-15 02:23:13 +00:00

don't under-report guild counts

This commit is contained in:
io mintz 2020-10-08 02:48:37 +00:00
parent 2a73585dfd
commit 7c353e797b

View file

@ -71,7 +71,8 @@ class Stats(BotBinStats):
@commands.Cog.listener() @commands.Cog.listener()
async def on_ready(self): async def on_ready(self):
self.count() self.count()
if self.is_reporter(): all_shards_ready = all(self.shlist)
if self.is_reporter() and all_shards_ready:
await self.send() await self.send()
def count(self): def count(self):