aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arthur/__main__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/arthur/__main__.py b/arthur/__main__.py
index 8b013b4..6416e09 100644
--- a/arthur/__main__.py
+++ b/arthur/__main__.py
@@ -3,6 +3,7 @@
import asyncio
import aiohttp
+import aiohttp.http
import discord
from discord.ext import commands
@@ -22,8 +23,9 @@ async def main() -> None:
intents.invites = False
intents.webhooks = False
intents.integrations = False
+ user_agent = f"github.com/python-discord/king-arthur ({aiohttp.http.SERVER_SOFTWARE})"
- async with aiohttp.ClientSession() as session:
+ async with aiohttp.ClientSession(headers={"User-Agent": user_agent}) as session:
arthur.instance = KingArthur(
guild_id=CONFIG.guild_id,
http_session=session,