MCPcopy Create free account
hub / github.com/HiddenCodeDevs/BlumTelegramBot / format_duration

Function format_duration

bot/core/helper.py:15–19  ·  view source on GitHub ↗
(seconds)

Source from the content-addressed store, hash-verified

13
14
15def format_duration(seconds):
16 hours = seconds // 3600
17 minutes = (seconds % 3600) // 60
18 remaining_seconds = seconds % 60
19 return f"{int(hours)}h:{int(minutes)}m:{int(remaining_seconds)}s"
20
21async def get_blum_database() -> dict | None:
22 url = 'https://raw.githubusercontent.com/zuydd/database/main/blum.json'

Callers 1

runMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected