matches old unix command

This commit is contained in:
Seaswimmer 2023-02-28 03:44:34 -05:00
parent a7c8da9740
commit cf04de6345

View file

@ -12,7 +12,8 @@ class Galaxy(commands.Cog):
async def unix(self, ctx): async def unix(self, ctx):
"""Posts the current Unix timestamp.""" """Posts the current Unix timestamp."""
timestamp = int(datetime.timestamp(datetime.now())) timestamp = int(datetime.timestamp(datetime.now()))
await ctx.send(timestamp) embed=discord.Embed(title="Current Time", color=await self.bot.get_embed_color(None), description=f"<t:{timestamp}>", footer=f"{timestamp}")
await ctx.send(embed=embed)
@commands.command() @commands.command()