Change timestamp on joke to be when joke was created
This commit is contained in:
parent
28b3efa84e
commit
eff391a4e8
1 changed files with 6 additions and 5 deletions
|
@ -67,17 +67,18 @@ class JokeCog(commands.Cog):
|
|||
fields = [
|
||||
Field("", result["body"], False),
|
||||
Field("Score", result["score"]),
|
||||
Field(
|
||||
"Created At",
|
||||
str(datetime.fromtimestamp(result["created_utc"])),
|
||||
),
|
||||
# Field(
|
||||
# "Created At",
|
||||
# str(datetime.fromtimestamp(result["created_utc"])),
|
||||
# ),
|
||||
Field("ID", result["id"]),
|
||||
]
|
||||
embed = build_embed(
|
||||
title=result["title"],
|
||||
description=None,
|
||||
description="",
|
||||
fields=fields,
|
||||
url=f"https://reddit.com/r/jokes/comments/{result['id']}",
|
||||
timestamp=datetime.fromtimestamp(result["created_urc"]),
|
||||
)
|
||||
await ctx.send(embed=embed)
|
||||
# await ctx.send(f"**{result['title']}**\n\n{result['body']}")
|
||||
|
|
Loading…
Add table
Reference in a new issue