mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Fix bug in poke current, fix bug in whois
This commit is contained in:
parent
cd4dcbaeb5
commit
0085882148
3 changed files with 11 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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])))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue