Skip to content

Commit 7c38309

Browse files
committed
fix: ipv6 troubles
1 parent 7bdca6e commit 7c38309

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

contestdojo_verifier_bot/__main__.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import aiohttp
12
import discord
2-
import traceback
33
import os
4+
import traceback
45
from contestdojo_api_client import Client as ContestDojoClient
56
from contestdojo_api_client.structs import EventStudent
67

@@ -16,6 +17,11 @@ def __init__(self):
1617
super().__init__(intents=intents)
1718
self.cd = ContestDojoClient(CONTESTDOJO_API_KEY)
1819

20+
async def _async_setup_hook(self):
21+
# https://github.com/Rapptz/discord.py/pull/9870
22+
await super()._async_setup_hook()
23+
self.http.connector = aiohttp.TCPConnector(limit=0)
24+
1925
async def setup_hook(self):
2026
self.view = VerifyView(self)
2127
self.add_view(self.view)

0 commit comments

Comments
 (0)