diff --git a/bot/cogs/s3.py b/bot/cogs/s3.py index 11ea23b..c76c0f3 100644 --- a/bot/cogs/s3.py +++ b/bot/cogs/s3.py @@ -65,14 +65,13 @@ async def update_presence(self) -> None: and the total size of files in the S3 bucket. """ try: - # total_files, total_size = self.calculate_bucket_stats() - # humanized_size = humanize.naturalsize(total_size, binary=True) - # activity_text = f"{total_files} files ({humanized_size})" - # - # await self.bot.change_presence(activity=CustomActivity(f"Managing {activity_text}")) - await self.bot.change_presence(activity=CustomActivity(f"Running version 0.1.5")) - - # logger.info(f"Updated presence to: {activity_text}") + total_files, total_size = self.calculate_bucket_stats() + humanized_size = humanize.naturalsize(total_size, binary=True) + activity_text = f"{total_files} files ({humanized_size})" + + await self.bot.change_presence(activity=CustomActivity(f"Managing {activity_text} | v1.0.0-beta")) + + logger.info(f"Updated presence to: {activity_text}") except Exception as e: logger.error(f"Failed to update presence: {e}")