aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/seasons/halloween/hacktoberstats.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/seasons/halloween/hacktoberstats.py b/bot/seasons/halloween/hacktoberstats.py
index 40c680db..ffcb6eaf 100644
--- a/bot/seasons/halloween/hacktoberstats.py
+++ b/bot/seasons/halloween/hacktoberstats.py
@@ -238,8 +238,9 @@ class HacktoberStats(commands.Cog):
f"&per_page={per_page}"
)
+ headers = {"user-agent": "Discord Python Hacktoberbot"}
async with aiohttp.ClientSession() as session:
- async with session.get(query_url) as resp:
+ async with session.get(query_url, headers=headers) as resp:
jsonresp = await resp.json()
if "message" in jsonresp.keys():