diff options
author | 2020-10-03 03:46:10 +0530 | |
---|---|---|
committer | 2020-10-03 03:46:10 +0530 | |
commit | f7e26fb4d3b8c6869eb4dd8dc8b9ef31ceb8352a (patch) | |
tree | 09e22482d5c498edcba41c0575984ca2e6ac9774 | |
parent | Merge branch 'master' into master (diff) |
final changes
-rw-r--r-- | bot/exts/evergreen/githubinfo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/evergreen/githubinfo.py b/bot/exts/evergreen/githubinfo.py index b7ebcb3e..2a540bac 100644 --- a/bot/exts/evergreen/githubinfo.py +++ b/bot/exts/evergreen/githubinfo.py @@ -41,7 +41,7 @@ class GithubInfo(commands.Cog): user_data = await self.fetch_data(f"https://api.github.com/users/{username}") - # user_data will not have a message key if the user exists + # 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=f"The profile for `{username}` was not found.", colour=0xff0022)) @@ -54,9 +54,9 @@ class GithubInfo(commands.Cog): starred_data = await self.fetch_data(user_data['starred_url']) # Forming blog link - if user_data['blog'].startswith("http"): # Blog link is clickable + if user_data['blog'].startswith("http"): # Blog link is complete blog = f"[Direct link]({user_data['blog']})" - elif user_data['blog']: # Blog exists but the link is not clickable + elif user_data['blog']: # Blog exists but the link is not complete blog = f"[Direct link](https://{user_data['blog']})" else: blog = "No blog link available" |