py-sdk
py-sdk copied to clipboard
서버 수 업데이트 불가
재현 가능한 최소한의 코드
from koreanbots.integrations.discord import DiscordpyKoreanbots
from discord import Client, Intents
koreanbots_token = "<KOREANBOTS_TOKEN_HERE>"
client = Client(intents=Intents.default())
kbots = DiscordpyKoreanbots(client, kbt, run_task=True)
client.run("<DISCORD_BOT_TOKEN_HERE>")
예상되는 정상적인 동작
서버수가 업데이트 되야함
현재 발생되는 동작
Task was destroyed but it is pending!
task: <Task pending name='Task-1' coro=<DiscordpyKoreanbots.tasks_send_guildcount() running at .venv\lib\site-packages\koreanbots\integrations\discord.py:45>>
C:\Python310\lib\asyncio\base_events.py:666: RuntimeWarning: coroutine 'DiscordpyKoreanbots.tasks_send_guildcount' was never awaited
self._ready.clear()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
버전
2.1.0
이벤트 루프쪽 문제 같아보임
discord.py 에서 이벤트루프 처리 방식을 바꿨음
예제를 바꾸거나 아니면 현재 진입지점을 따로 export하면 해결이 될것 같긴한데..
최대한 타협점을 찾아봐야할것 같음
resolved in #44 #45