diff options
author | 2021-01-06 17:42:37 +0800 | |
---|---|---|
committer | 2021-01-06 17:42:37 +0800 | |
commit | 030a9996664cb6a52e027406a76d35c62e30a72a (patch) | |
tree | e05075e61e5db04d97695d981fecee35b9640681 /bot/exts/halloween/hacktoberstats.py | |
parent | Remove unused pathlib.Path import (diff) |
Formatting and add full stop to docstring
- bot/exts/halloween/hacktoberstats.py line 130, better readability
- same file line 208-209 add full stop
Diffstat (limited to 'bot/exts/halloween/hacktoberstats.py')
-rw-r--r-- | bot/exts/halloween/hacktoberstats.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/bot/exts/halloween/hacktoberstats.py b/bot/exts/halloween/hacktoberstats.py index a599af73..a1c55922 100644 --- a/bot/exts/halloween/hacktoberstats.py +++ b/bot/exts/halloween/hacktoberstats.py @@ -127,9 +127,13 @@ class HacktoberStats(commands.Cog): prs = await self.get_october_prs(github_username) if prs is None: # Will be None if the user was not found - await ctx.send(embed=discord.Embed(title=random.choice(NEGATIVE_REPLIES), - description=f"GitHub user `{github_username}` was not found.", - colour=discord.Colour.red())) + await ctx.send( + embed=discord.Embed( + title=random.choice(NEGATIVE_REPLIES), + description=f"GitHub user `{github_username}` was not found.", + colour=discord.Colour.red() + ) + ) return if prs: @@ -205,8 +209,8 @@ class HacktoberStats(commands.Cog): "number": int } - Otherwise, return empty list - None will be returned when the GitHub user was not found + Otherwise, return empty list. + None will be returned when the GitHub user was not found. """ logging.info(f"Fetching Hacktoberfest Stats for GitHub user: '{github_username}'") base_url = "https://api.github.com/search/issues?q=" |