From d539d03b5fdce5988fa5d25b99740480c1535ba1 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 3 Oct 2023 12:09:37 -0400 Subject: [PATCH] feat(galaxy): improved unix command --- galaxy/galaxy.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/galaxy/galaxy.py b/galaxy/galaxy.py index 26b7e40..e16cbfa 100644 --- a/galaxy/galaxy.py +++ b/galaxy/galaxy.py @@ -152,9 +152,16 @@ class Galaxy(commands.Cog): async def unix(self, ctx: commands.Context): """Posts the current Unix timestamp.""" timestamp = int(datetime.timestamp(datetime.now())) - embed=discord.Embed(title="Current Time", url="https://www.unixtimestamp.com/", color=await self.bot.get_embed_color(None), description=f"") + embed=discord.Embed(title="Current Time", url="https://www.unixtimestamp.com/", color=await self.bot.get_embed_color(None)) + embed.add_field(name="Default", value=f"/n``") + embed.add_field(name="Short Time", value=f"/n``") + embed.add_field(name="Long Time", value=f"/n``") + embed.add_field(name="Short Date", value=f"/n``") + embed.add_field(name="Long Date", value=f"/n``") + embed.add_field(name="Short Date/Time", value=f"/n``") + embed.add_field(name="Long Date/Time", value=f"/n``") + embed.add_field(name="Relative Time", value=f"/n``") embed.set_footer(text=f"{timestamp}") - embed.set_image(url="https://cdn.discordapp.com/attachments/1047347377348030494/1080048421127335956/image.png") await ctx.send(embed=embed) await ctx.message.delete()