Skip to content

Commit

Permalink
Update utility.py
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinaisslaying authored Jun 28, 2020
1 parent c798faa commit 0ff470e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cogs/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,12 @@ async def admin_token(self, ctx):
if token:
embed = discord.Embed(colour=await self.embed_colour(ctx))

embed.add_field(name=f"{self.bot.settings['emoji']['clock']} Current Time",
value=datetime.datetime.now().strftime(f"%I:%M%p - %a, %d %b %Y (GMT)"))
embed.add_field(name=f"{self.bot.settings['emoji']['timer']} Valid From",
embed.add_field(name=f"{self.bot.settings['emoji']['clock']} Valid From",
value=datetime.datetime.utcfromtimestamp(token["lastUpdate"] / 1000).strftime(
f"%I:%M%p - %a, %d %b %Y (GMT)"))
embed.add_field(name=f"{self.bot.settings['emoji']['timer']} Valid Until",
value=datetime.datetime.utcfromtimestamp(token["validUntil"] / 1000).strftime(
f"%I:%M%p - %a, %d %b %Y (GMT)"))
embed.add_field(name=f"{self.bot.settings['emoji']['cog']} Token", value=f"```{token['token']}```",
inline=False)
embed.set_thumbnail(url=ctx.author.avatar_url)
Expand Down

0 comments on commit 0ff470e

Please sign in to comment.