diff --git a/cogs/players.py b/cogs/players.py index 1967738..d2d8698 100644 --- a/cogs/players.py +++ b/cogs/players.py @@ -151,7 +151,7 @@ class PlayersCog(commands.Cog): embed.title = "Player Has Connected" embed.colour = Colour.brand_green() - await channel.send(embed=embed) + # await channel.send(embed=embed) async def process_disconnected_player(self, line: str, alert: bool = False): """ @@ -182,7 +182,7 @@ class PlayersCog(commands.Cog): embed.title = "Player Has Disconnected" embed.colour = Colour.brand_red() - await channel.send(embed=embed) + # await channel.send(embed=embed) async def setup(bot: commands.Bot): diff --git a/utils/models.py b/utils/models.py index b79e7ea..e29c5b1 100644 --- a/utils/models.py +++ b/utils/models.py @@ -102,7 +102,12 @@ class Player(Model): # I know this is terrible efficiency-wise, but the tortoise docs # are so bad and the annotations don't work like Django's models. Deal with it! for session in sessions: - log.info("session playtime: %s", session.playtime) + log.info( + "session start: %s\nsession end: %s\nsession playtime: %s", + session.connected_at, + session.disconnected_at, + session.playtime + ) total_playtime += session.playtime return total_playtime