aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/stackoverflow.py
diff options
context:
space:
mode:
authorGravatar Vivaan Parashar <[email protected]>2021-02-10 22:59:03 +0530
committerGravatar Vivaan Parashar <[email protected]>2021-02-10 22:59:03 +0530
commitd8da42d858ce6d20eda941f2141cd199cb66b0a6 (patch)
tree00b422b95348a484b4b05c20e86a974202d095ee /bot/exts/evergreen/stackoverflow.py
parentMerge branch 'master' of https://github.com/Vthechamp22/sir-lancebot into fea... (diff)
Add link of question
Diffstat (limited to 'bot/exts/evergreen/stackoverflow.py')
-rw-r--r--bot/exts/evergreen/stackoverflow.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/evergreen/stackoverflow.py b/bot/exts/evergreen/stackoverflow.py
index ab98c757..d388b26d 100644
--- a/bot/exts/evergreen/stackoverflow.py
+++ b/bot/exts/evergreen/stackoverflow.py
@@ -30,10 +30,10 @@ class Stackoverflow(Cog):
for item in top5:
embed.add_field(
name=f"{unescape(item['title'])}",
- value=(f"{item['score']} upvotes ┃ "
+ value=(f"[{item['score']} upvotes ┃ "
f"{item['view_count']} views ┃ "
- f"{item['answer_count']} answers "
- ),
+ f"{item['answer_count']} answer{'s' if item['answer_count'] != 1 else ''} ]"
+ f"({item['link']})"),
inline=False)
embed.set_footer()
await ctx.send(embed=embed)