aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween/hacktoberstats.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-11-21 01:20:13 +0100
committerGravatar Leon Sandøy <[email protected]>2020-11-21 01:20:13 +0100
commit8a57e92f3200ceb598e8c8c5faf39dcf24dd3e89 (patch)
tree209c0a329bd5ca7811471e7fce7b7551d2f809ae /bot/exts/halloween/hacktoberstats.py
parentHeader image for Sir Lancebot (diff)
parentMerge pull request #528 from python-discord/lemon/refactor/seasonalbot_name_c... (diff)
Merge branch 'master' of github.com:python-discord/seasonalbot
Diffstat (limited to 'bot/exts/halloween/hacktoberstats.py')
-rw-r--r--bot/exts/halloween/hacktoberstats.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/halloween/hacktoberstats.py b/bot/exts/halloween/hacktoberstats.py
index 26d75565..84b75022 100644
--- a/bot/exts/halloween/hacktoberstats.py
+++ b/bot/exts/halloween/hacktoberstats.py
@@ -193,7 +193,7 @@ class HacktoberStats(commands.Cog):
For each PR:
{
"repo_url": str
- "repo_shortname": str (e.g. "python-discord/seasonalbot")
+ "repo_shortname": str (e.g. "python-discord/sir-lancebot")
"created_at": datetime.datetime
"number": int
}
@@ -360,10 +360,10 @@ class HacktoberStats(commands.Cog):
"""
Extract shortname from https://api.github.com/repos/* URL.
- e.g. "https://api.github.com/repos/python-discord/seasonalbot"
+ e.g. "https://api.github.com/repos/python-discord/sir-lancebot"
|
V
- "python-discord/seasonalbot"
+ "python-discord/sir-lancebot"
"""
exp = r"https?:\/\/api.github.com\/repos\/([/\-\_\.\w]+)"
return re.findall(exp, in_url)[0]