aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/githubinfo.py
diff options
context:
space:
mode:
authorGravatar Lakshya Shastri <[email protected]>2020-10-10 23:44:38 +0530
committerGravatar Lakshya Shastri <[email protected]>2020-10-10 23:44:38 +0530
commitf460a67d339df53163bb1fdc6a8d250a7d498c04 (patch)
treec61307b41c3a9e56204c7586ee1de6b56ef1edb5 /bot/exts/evergreen/githubinfo.py
parentcmd resets if username not given; blog renamed to website; replaced starred r... (diff)
followers md fix
Diffstat (limited to 'bot/exts/evergreen/githubinfo.py')
-rw-r--r--bot/exts/evergreen/githubinfo.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bot/exts/evergreen/githubinfo.py b/bot/exts/evergreen/githubinfo.py
index b0e7c9f0..c514d200 100644
--- a/bot/exts/evergreen/githubinfo.py
+++ b/bot/exts/evergreen/githubinfo.py
@@ -18,7 +18,6 @@ class GithubInfo(commands.Cog):
def __init__(self, bot: commands.Bot):
self.bot = bot
- @staticmethod
async def fetch_data(self, url: str) -> dict:
"""Retrieve data as a dictionary."""
async with self.bot.http_session.get(url) as r:
@@ -43,6 +42,7 @@ class GithubInfo(commands.Cog):
# User_data will not have a message key if the user exists
if user_data.get('message') is not None:
await ctx.send(embed=discord.Embed(title=random.choice(NEGATIVE_REPLIES),
+ description=f"The profile for `{username}` was not found.",
colour=discord.Colour.red()))
return
@@ -72,11 +72,11 @@ class GithubInfo(commands.Cog):
if user_data['type'] == "User":
- embed.add_field(name="Followers", value=f"""[{user_data['followers']}]
- ({user_data['html_url']}?tab=followers)""")
+ embed.add_field(name="Followers",
+ value=f"[{user_data['followers']}]({user_data['html_url']}?tab=followers)")
embed.add_field(name="\u200b", value="\u200b")
- embed.add_field(name="Following", value=f"""[{user_data['following']}]
- ({user_data['html_url']}?tab=following)""")
+ embed.add_field(name="Following",
+ value=f"[{user_data['following']}]({user_data['html_url']}?tab=following)")
embed.add_field(name="Public repos",
value=f"[{user_data['public_repos']}]({user_data['html_url']}?tab=repositories)")