Skip to content

Commit

Permalink
fix: ipv6 troubles
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-ni committed Dec 5, 2024
1 parent 7bdca6e commit 7c38309
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion contestdojo_verifier_bot/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import aiohttp
import discord
import traceback
import os
import traceback
from contestdojo_api_client import Client as ContestDojoClient
from contestdojo_api_client.structs import EventStudent

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

async def _async_setup_hook(self):
# https://github.com/Rapptz/discord.py/pull/9870
await super()._async_setup_hook()
self.http.connector = aiohttp.TCPConnector(limit=0)

async def setup_hook(self):
self.view = VerifyView(self)
self.add_view(self.view)
Expand Down

0 comments on commit 7c38309

Please sign in to comment.