grocery-bot

Log | Files | Refs | README

commit 47deb039b3f0fd1f421c13d1b0c1e34cddc64058
parent 8b9dacf40bd9c308825c0ded648a3c0dfdd3543e
Author: Chris Roberts <chris.roberts@learningunix.net>
Date:   Thu,  9 Jul 2026 10:08:15 -0500

made updates

Diffstat:
MCLAUDE.md | 8+++-----
Manton-bot.service | 4++--
Mbot.py | 1+
3 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/CLAUDE.md b/CLAUDE.md @@ -24,8 +24,8 @@ logic complexity for this tool. confirmed 2026-07-03) — pin to v22+ if the system Python is 3.14. - SQLite via `sqlite3` stdlib or `sqlmodel` if an ORM is wanted — keep it simple, this doesn't need SQLAlchemy's full weight -- `systemd` service file for deployment (pattern-match the existing - `notify.sh` / MakeMKV LXC setup — same conventions for logging and restarts) +- `systemd` service file for deployment (same conventions for logging and + restarts as the rest of the homelab stack) ## Data Model @@ -60,9 +60,7 @@ logic complexity for this tool. ## Code Style / Conventions - Match the conventions already used in Jake's other homelab projects: - small, readable functions over cleverness; explicit error handling; - Pushover notification on failures via the existing `notify.sh` pattern - where relevant (e.g. bot crash, DB write failure). + small, readable functions over cleverness; explicit error handling. - No unnecessary abstraction layers — this is a personal tool, not a library. Prefer a flat file structure (`bot.py`, `db.py`, `models.py`, `parsing.py`) over deep package nesting. diff --git a/anton-bot.service b/anton-bot.service @@ -11,8 +11,8 @@ # 7. Check it came up: systemctl status anton-bot && journalctl -u anton-bot -f # # NOTE: User/WorkingDirectory/EnvironmentFile/ExecStart below are placeholders -- -# this hasn't been matched against your existing homelab unit conventions -# (e.g. the MakeMKV LXC setup CLAUDE.md references). Adjust paths/user to match. +# this hasn't been matched against your existing homelab unit conventions. +# Adjust paths/user to match. [Unit] Description=Anton Recipe & Grocery Telegram Bot diff --git a/bot.py b/bot.py @@ -25,6 +25,7 @@ load_dotenv() TOKEN = os.environ["TELEGRAM_BOT_TOKEN"] logging.basicConfig(level=logging.INFO) +logging.getLogger("httpx").setLevel(logging.WARNING) logger = logging.getLogger(__name__) ADDRECIPE_NAME, ADDRECIPE_BODY = range(2)