aboutsummaryrefslogtreecommitdiffstats
path: root/bot/cogs/hacktober/hacktoberstats.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-11-18 13:03:12 +0000
committerGravatar Gareth Coles <[email protected]>2018-11-18 13:03:12 +0000
commit80055e1c1edf0bb6ea77a6b557fbc4ec9f56313e (patch)
tree996ebee01d26eebe693893ef74342a28629bba23 /bot/cogs/hacktober/hacktoberstats.py
parentAzure: Silence Pepper once again (diff)
Hacktoberbot -> Seasonalbot
Diffstat (limited to 'bot/cogs/hacktober/hacktoberstats.py')
-rw-r--r--bot/cogs/hacktober/hacktoberstats.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/cogs/hacktober/hacktoberstats.py b/bot/cogs/hacktober/hacktoberstats.py
index 0ccb41c1..0755503c 100644
--- a/bot/cogs/hacktober/hacktoberstats.py
+++ b/bot/cogs/hacktober/hacktoberstats.py
@@ -202,7 +202,7 @@ class Stats:
For each PR:
{
"repo_url": str
- "repo_shortname": str (e.g. "discord-python/hacktoberbot")
+ "repo_shortname": str (e.g. "python-discord/seasonalbot")
"created_at": datetime.datetime
}
@@ -259,10 +259,10 @@ class Stats:
"""
Extract shortname from https://api.github.com/repos/* URL
- e.g. "https://api.github.com/repos/discord-python/hacktoberbot"
+ e.g. "https://api.github.com/repos/python-discord/seasonalbot"
|
V
- "discord-python/hacktoberbot"
+ "python-discord/seasonalbot"
"""
exp = r"https?:\/\/api.github.com\/repos\/([/\-\_\.\w]+)"
return re.findall(exp, in_url)[0]