clean up firebase_website: offload cpu_percent to thread, cache fastfetch, fix regex, drop processes

This commit is contained in:
esef committed 2026-07-22 22:21:23 +03:00
1 parent ab3265667c
commit 7c2fd2a1ac
3 files changed
+86 -46

No files matched your search

+5 -1
View File
@@ -2,6 +2,10 @@
Requires GOOGLE_APPLICATION_CREDENTIALS env var pointing to a service-account JSON.
This package is loaded as a Discord extension purely for lifecycle hooks
(setup / teardown). It does not register a Cog — it starts a background
SysInfoSync task instead.
Usage from main.py:
await bot.load_extension("firebase_website")
"""
@@ -10,7 +14,7 @@ import logging
from discord.ext import commands
from .config import get_db # noqa: re‑export for other modules
from .config import get_db # noqa: re‑export for calendar, bucketlist, etc.
from .sysinfo_sync import SysInfoSync
log = logging.getLogger(__name__)