aboutsummaryrefslogtreecommitdiffstats
path: root/bot/cogs/hacktober/hacktoberstats.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/cogs/hacktober/hacktoberstats.py')
-rw-r--r--bot/cogs/hacktober/hacktoberstats.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/bot/cogs/hacktober/hacktoberstats.py b/bot/cogs/hacktober/hacktoberstats.py
index 0755503c..c473d3d0 100644
--- a/bot/cogs/hacktober/hacktoberstats.py
+++ b/bot/cogs/hacktober/hacktoberstats.py
@@ -148,13 +148,14 @@ class Stats:
Otherwise, post a helpful error message
"""
- prs = await self.get_october_prs(github_username)
+ async with ctx.typing():
+ prs = await self.get_october_prs(github_username)
- if prs:
- stats_embed = self.build_embed(github_username, prs)
- await ctx.send('Here are some stats!', embed=stats_embed)
- else:
- await ctx.send(f"No October GitHub contributions found for '{github_username}'")
+ if prs:
+ stats_embed = self.build_embed(github_username, prs)
+ await ctx.send('Here are some stats!', embed=stats_embed)
+ else:
+ await ctx.send(f"No October GitHub contributions found for '{github_username}'")
def build_embed(self, github_username: str, prs: typing.List[dict]) -> discord.Embed:
"""