The website bot status tab was replaced by the VEGA status page, so nothing reads sysinfo/server anymore. get_db() stays for calendar and bucketlist. Co-Authored-By: Claude Opus 5.5 <[email protected]>
19 lines
635 B
Python
19 lines
635 B
Python
"""firebase_website — Bot → Firestore access using the Admin SDK.
|
||
|
||
Requires GOOGLE_APPLICATION_CREDENTIALS env var pointing to a service-account JSON.
|
||
|
||
Loaded as a Discord extension only so missing credentials fail at startup.
|
||
The calendar and bucketlist cogs use get_db().
|
||
|
||
Usage from main.py:
|
||
await bot.load_extension("firebase_website")
|
||
"""
|
||
######################################################################
|
||
from discord.ext import commands
|
||
|
||
from .config import get_db # noqa: re‑export for calendar, bucketlist, etc.
|
||
|
||
|
||
async def setup(bot: commands.Bot) -> None:
|
||
get_db() # fail fast if credentials are missing
|