1
0
Fork 0
mirror of https://git.mctaylors.ru/mctaylors/Lurker.git synced 2024-11-23 01:48:03 +03:00
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}|")