Lurker/extensions.py
mctaylors befd494de2
random: Show the given range as a table
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
2024-11-07 00:33:32 +03:00

8 lines
256 B
Python

def icon_info(icon):
return f"[{icon.filename}](<{icon.url}>) ({icon.width}x{icon.height})"
def random_message(result, min, max):
return (f"## {result}\n"
f"| Min | Max |\n"
f"| --- | --- |\n"
f"|{min}|{max}|")