mirror of
https://git.mctaylors.ru/mctaylors/Lurker.git
synced 2024-11-23 05:18:03 +03:00
timestamp: Send formatted timestamp
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
4b7b7bc062
commit
92797df873
1 changed files with 3 additions and 3 deletions
|
@ -37,17 +37,17 @@ class Client(commands.CommandsClient):
|
|||
|
||||
if x > y:
|
||||
message = randrange(y, x + 1)
|
||||
await ctx.send(f"**{str(message)}** `({y};{x})`")
|
||||
await ctx.send(f"**{message}** `({y};{x})`")
|
||||
return
|
||||
|
||||
message = randrange(x, y + 1)
|
||||
await ctx.send(f"**{str(message)}** `({x};{y})`")
|
||||
await ctx.send(f"**{message}** `({x};{y})`")
|
||||
|
||||
@commands.command()
|
||||
async def timestamp(self, ctx: commands.Context):
|
||||
"""Shows current timestamp"""
|
||||
message = trunc(time())
|
||||
await ctx.send(str(message))
|
||||
await ctx.send(f"**{message}** <t:{message}:f>")
|
||||
|
||||
@commands.command()
|
||||
async def self(self, ctx: commands.Context):
|
||||
|
|
Loading…
Reference in a new issue