dev #4

Merged
corbz merged 29 commits from dev into master 2025-02-16 20:52:11 +00:00
2 changed files with 8 additions and 3 deletions
Showing only changes of commit da217c1242 - Show all commits

View File

@ -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):

View File

@ -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