fixed unix command
This commit is contained in:
parent
b52fd314c2
commit
6f0378424c
1 changed files with 2 additions and 1 deletions
|
@ -12,8 +12,9 @@ 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()))
|
||||||
embed=discord.Embed(title="Current Time", color=await self.bot.get_embed_color(None), description=f"<t:{timestamp}>", image="https://cdn.discordapp.com/attachments/1047347377348030494/1080048421127335956/image.png")
|
embed=discord.Embed(title="Current Time", color=await self.bot.get_embed_color(None), description=f"<t:{timestamp}>")
|
||||||
embed.set_footer(text=f"{timestamp}")
|
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.send(embed=embed)
|
||||||
await ctx.message.delete()
|
await ctx.message.delete()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue