Skip to content

Commit

Permalink
fix: status
Browse files Browse the repository at this point in the history
  • Loading branch information
ap12-code committed Sep 16, 2024
1 parent 52cc412 commit 0bce1b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CommandLab.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 0bce1b9

Please sign in to comment.