From 0bce1b96869c60cc9ec90696a24c1ff5b2495196 Mon Sep 17 00:00:00 2001 From: ap12 Date: Mon, 16 Sep 2024 17:48:17 +0900 Subject: [PATCH] fix: status --- CommandLab.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CommandLab.py b/CommandLab.py index ba398c9..2f2aee1 100644 --- a/CommandLab.py +++ b/CommandLab.py @@ -86,6 +86,7 @@ async def change_status(self): if self.status_index > len(STATUSES): self.status_index = 0 await asyncio.sleep(interval) + asyncio.create_task(self.change_status()) async def setup_hook(self) -> None: if "*" in config.enabled_features: @@ -100,6 +101,7 @@ async def setup_hook(self) -> None: await self.load_extension(f) logger.info(f"機能 [{f}] が正常にロードされました。") await self.tree.sync() + self.loop.create_task(self.change_status()) @classmethod