py-sdk icon indicating copy to clipboard operation
py-sdk copied to clipboard

서버 수 업데이트 불가

Open SaidBySolo opened this issue 1 year ago • 1 comments

재현 가능한 최소한의 코드

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

SaidBySolo avatar Jan 16 '23 04:01 SaidBySolo