Telegram bot for editing Better Life SG website
Find a file
2026-04-16 08:42:29 +08:00
compose fix: mount SSH keys and host repos for git push, install openssh-client 2026-04-16 08:27:54 +08:00
scripts feat: auth allowlist, memoraiz project, git push-to-deploy, group chat support, bot menu commands 2026-04-16 08:24:16 +08:00
.gitignore Initial: BetterBot Telegram bot for site editing 2026-04-16 07:42:31 +08:00
Dockerfile fix: mount SSH keys and host repos for git push, install openssh-client 2026-04-16 08:27:54 +08:00
main.py feat: add image/photo support for vision-capable LLM requests 2026-04-16 08:42:29 +08:00
README.md Initial: BetterBot Telegram bot for site editing 2026-04-16 07:42:31 +08:00
requirements.txt Initial: BetterBot Telegram bot for site editing 2026-04-16 07:42:31 +08:00

BetterBot

A simplified Telegram bot that lets non-technical users edit the Better Life SG website by sending natural language instructions.

How it works

  1. User sends a message to the Telegram bot (e.g. "Change the phone number to 91234567")
  2. BetterBot uses an LLM (GPT-4.1) with file-editing tools to read and modify the website HTML
  3. Changes are written directly to the site files served by Caddy

Stack

  • Python 3.12 + python-telegram-bot + OpenAI SDK
  • Reads/writes static HTML files mounted from /opt/betterlifesg/site/
  • Runs on RackNerd at betterbot.bytesizeprotip.com

Deployment

ssh racknerd bash /opt/src/betterbot/scripts/deploy-betterbot.sh

Commands

  • /start — Introduction and examples
  • /reset — Clear conversation history