timestamp: Add chat syntax table
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
92797df873
commit
4211f72b9d
1 changed files with 10 additions and 1 deletions
11
client.py
11
client.py
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue