aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/githubinfo.py
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-03-20 12:15:57 -0400
committerGravatar ToxicKidz <[email protected]>2021-03-20 12:15:57 -0400
commit85c6dfa00e01abea8b65654aed59a520af3c18a6 (patch)
tree1d9f799801af8f6a880e86a15dd891dce37b62c5 /bot/exts/evergreen/githubinfo.py
parentChange (diff)
Make last commit not a timestamp to improve readability
Diffstat (limited to 'bot/exts/evergreen/githubinfo.py')
-rw-r--r--bot/exts/evergreen/githubinfo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/evergreen/githubinfo.py b/bot/exts/evergreen/githubinfo.py
index 5559a464..67d91589 100644
--- a/bot/exts/evergreen/githubinfo.py
+++ b/bot/exts/evergreen/githubinfo.py
@@ -133,8 +133,7 @@ class GithubInfo(commands.Cog):
title=f"{repo_data['name']}",
description=repo_data["description"],
colour=discord.Colour.blurple(),
- url=repo_data['html_url'],
- timestamp=datetime.strptime(repo_data['pushed_at'], "%Y-%m-%dT%H:%M:%SZ")
+ url=repo_data['html_url']
)
# If it's a fork, then it will have a parent key
@@ -148,13 +147,14 @@ class GithubInfo(commands.Cog):
)
repo_created_at = datetime.strptime(repo_data['created_at'], "%Y-%m-%dT%H:%M:%SZ").strftime("%d/%m/%Y")
+ last_pushed = datetime.strptime(repo_data['pushed_at'], "%Y-%m-%dT%H:%M:%SZ").strftime("%d/%m/%Y at %H:%M")
embed.set_footer(
text=(
f"{repo_data['forks_count']} ⑂ "
f"• {repo_data['stargazers_count']} ⭐ "
f"• Created At {repo_created_at} "
- f"• Last commit "
+ f"• Last Commit {last_pushed}"
)
)