fix(aurora): fixed an error with timedelta formatting
This commit is contained in:
parent
5151f65317
commit
0a207b66e4
2 changed files with 8 additions and 1 deletions
|
@ -194,6 +194,12 @@ def timedelta_from_relativedelta(relativedelta: rd) -> timedelta:
|
|||
then = now - relativedelta
|
||||
return now - then
|
||||
|
||||
def timedelta_to_string(timedelta: timedelta) -> str:
|
||||
"""Converts a timedelta object to a string."""
|
||||
hours, remainder = divmod(timedelta.seconds, 3600)
|
||||
minutes, seconds = divmod(remainder, 60)
|
||||
return f"{hours}:{minutes}:{seconds}s"
|
||||
|
||||
def get_footer_image(coginstance: commands.Cog) -> File:
|
||||
"""Returns the footer image for the embeds."""
|
||||
image_path = data_manager.bundled_data_path(coginstance) / "arrow.png"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue