Added /status command

This commit is contained in:
2025-04-28 13:06:55 +02:00
parent c96cb167b5
commit c4ebd1b891
6 changed files with 85 additions and 2 deletions

View File

@@ -20,6 +20,9 @@ logger: Logger = get_logger(__name__)
class PycordBot(LibPycordBot):
__version__ = "0.1.0"
started: datetime
cache: CacheMemcached | CacheRedis | None = None
def __init__(self, *args, **kwargs) -> None:
@@ -48,6 +51,9 @@ class PycordBot(LibPycordBot):
@override
async def start(self, *args: Any, **kwargs: Any) -> None:
await self._schedule_tasks()
self.started = datetime.now(tz=ZoneInfo("UTC"))
await super().start(*args, **kwargs)
@override