Skip to content

Commit

Permalink
skip fake event in cogs
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasByr committed Sep 20, 2023
1 parent 24d6bcc commit 4ef1f3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/helper/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def __init__(self, client: commands.AutoShardedBot) -> None:
@commands.Cog.listener()
async def on_ready(self):
if self.__loaded:
self.log.info('received event ... cog previously loaded')
return
self.__loaded = True
self.log.info('%s cog loaded !', self.__class__.__name__)
Expand Down

0 comments on commit 4ef1f3c

Please sign in to comment.