We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bdca6e commit 7c38309Copy full SHA for 7c38309
contestdojo_verifier_bot/__main__.py
@@ -1,6 +1,7 @@
1
+import aiohttp
2
import discord
-import traceback
3
import os
4
+import traceback
5
from contestdojo_api_client import Client as ContestDojoClient
6
from contestdojo_api_client.structs import EventStudent
7
@@ -16,6 +17,11 @@ def __init__(self):
16
17
super().__init__(intents=intents)
18
self.cd = ContestDojoClient(CONTESTDOJO_API_KEY)
19
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
+
25
async def setup_hook(self):
26
self.view = VerifyView(self)
27
self.add_view(self.view)
0 commit comments