mirror of
https://github.com/uhIgnacio/EmoteManager.git
synced 2024-08-15 02:23:13 +00:00
stats: fix over-reporting when on_ready is dispatched twice
This commit is contained in:
parent
9d570b55fe
commit
e284b9ee62
1 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,9 @@ class Stats(BotBinStats):
|
||||||
|
|
||||||
@commands.Cog.listener()
|
@commands.Cog.listener()
|
||||||
async def on_ready(self):
|
async def on_ready(self):
|
||||||
|
for shard_id in self.bot.shard_ids:
|
||||||
|
self.shlist[shard_id] = 0
|
||||||
|
|
||||||
for guild in self.bot.guilds:
|
for guild in self.bot.guilds:
|
||||||
self.shlist[guild.shard_id] += 1
|
self.shlist[guild.shard_id] += 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue