Fix bug in poke current, fix bug in whois

This commit is contained in:
Stijn De Clercq 2020-11-22 00:30:26 +01:00
parent cd4dcbaeb5
commit 0085882148
3 changed files with 11 additions and 4 deletions

View file

@ -170,7 +170,7 @@ class ModCommands(commands.Cog):
created_local = timeFormatters.epochToDate(user.created_at.timestamp())
embed.add_field(name="Account Aangemaakt", value="{}\n({} Geleden)".format(
embed.add_field(name="Account Aangemaakt", value="{}\n({} geleden)".format(
created_local["date"], timeFormatters.diffYearBasisString(round(created_local["dateDT"].timestamp()))
), inline=False)

View file

@ -58,7 +58,7 @@ class Poke(commands.Cog):
@poke.command(name="Current")
async def current(self, ctx):
p = poke.get()
pokedTimeStamp = datetime.datetime.fromtimestamp(int(p[1]))
pokedTimeStamp = timeFormatters.epochToDate(int(p[1]))["dateDT"]
timeString = timeFormatters.diffDayBasisString(pokedTimeStamp)
await ctx.send("Het is al **{}** aan **{}**.".format(timeString, self.utilsCog.getDisplayName(ctx, p[0])))