1
0
Fork 0
mirror of https://git.mctaylors.ru/mctaylors/Lurker.git synced 2024-11-23 10:08:03 +03:00

timestamp: Add chat syntax table

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
Macintxsh 2024-11-06 23:36:24 +03:00
parent 92797df873
commit 4211f72b9d
Signed by: mctaylors
GPG key ID: 4EEF4F949A266EE2

View file

@ -47,7 +47,16 @@ class Client(commands.CommandsClient):
async def timestamp(self, ctx: commands.Context):
"""Shows current timestamp"""
message = trunc(time())
await ctx.send(f"**{message}** <t:{message}:f>")
await ctx.send(f"## {message}\n"
f"| Chat syntax | Result |\n"
f"| --- | --- |\n"
f"| `<t:{message}:d>` | <t:{message}:d> |\n"
f"| `<t:{message}:D>` | <t:{message}:D> |\n"
f"| `<t:{message}:t>` | <t:{message}:t> |\n"
f"| `<t:{message}:T>` | <t:{message}:T> |\n"
f"| `<t:{message}:f>` | <t:{message}:f> |\n"
f"| `<t:{message}:F>` | <t:{message}:F> |\n"
f"| `<t:{message}:R>` | <t:{message}:R> |")
@commands.command()
async def self(self, ctx: commands.Context):