Bot & Automation
Activity Reminder Bot
/root/hermes-projects/Activity Reminder Bot
apps/activity_reminder_bot/api/main.py
text
from fastapi import FastAPI
from activity_reminder_bot import __version__
from activity_reminder_bot.core.config import get_settings
from activity_reminder_bot.services.sheets import get_reminder_repository
app = FastAPI(title="Activity Reminder Bot API", version=__version__)
@app.get("/health")
def health() -> dict[str, str]:
return {"status": "ok", "service": "activity-reminder-bot", "version": __version__}
@app.get("/ready")
def ready() -> dict[str, object]:
settings = get_settings()
repository = get_reminder_repository()
return {
"status": "ready" if settings.is_telegram_configured and repository.is_configured() else "needs_configuration",
"telegram_configured": settings.is_telegram_configured,
"google_sheets_configured": repository.is_configured(),
"timezone": settings.app_timezone,
"worksheet": settings.google_sheets_worksheet_name,
}