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 = [
|
fields = [
|
||||||
Field("", result["body"], False),
|
Field("", result["body"], False),
|
||||||
Field("Score", result["score"]),
|
Field("Score", result["score"]),
|
||||||
Field(
|
# Field(
|
||||||
"Created At",
|
# "Created At",
|
||||||
str(datetime.fromtimestamp(result["created_utc"])),
|
# str(datetime.fromtimestamp(result["created_utc"])),
|
||||||
),
|
# ),
|
||||||
Field("ID", result["id"]),
|
Field("ID", result["id"]),
|
||||||
]
|
]
|
||||||
embed = build_embed(
|
embed = build_embed(
|
||||||
title=result["title"],
|
title=result["title"],
|
||||||
description=None,
|
description="",
|
||||||
fields=fields,
|
fields=fields,
|
||||||
url=f"https://reddit.com/r/jokes/comments/{result['id']}",
|
url=f"https://reddit.com/r/jokes/comments/{result['id']}",
|
||||||
|
timestamp=datetime.fromtimestamp(result["created_urc"]),
|
||||||
)
|
)
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
# await ctx.send(f"**{result['title']}**\n\n{result['body']}")
|
# await ctx.send(f"**{result['title']}**\n\n{result['body']}")
|
||||||
|
|
Loading…
Add table
Reference in a new issue