Skip to content

Commit

Permalink
Deploying v1.0.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahH99 committed Nov 25, 2024
1 parent 7b8b62b commit d66fa19
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions bot/cogs/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down

0 comments on commit d66fa19

Please sign in to comment.