Files
clinera-site/telegram-bot
Azreen Jamal bd2c7d5102 feat: pi-worker now picks up and fixes real bugs from Asana
Major changes:
- Task loop polls Under Review + New Bugs sections (was only checking empty sections)
- Smart project routing: keyword matching maps task names to correct codebase
  (e.g. 'pledge' → legacy-donation-system-laravel)
- Pi executes in the project directory, not /opt/pi-worker
- Git pull before execution to get latest code
- Skips already-attempted tasks (checks Asana comments)
- Config now exposes projectsPath

First real bug fixed autonomously:
  'Duplicate Pledges Detected with Same External Reference'
  → Fixed uniqid() causing duplicate Engage pledges on every sync
  → 1 file changed in app/N3O/Schema.php

Also: fix watchdog to use systemd-notify command (unix_dgram unsupported in Bun),
add debug logging to lock acquire failures
2026-03-09 01:33:24 +08:00
..

CR Management Telegram Bot

AI-powered server management bot via Telegram (@cr_management_smart_bot).

Features

  • Two-way chat — talk to Claude, it understands your infra
  • Command runner — execute SSH commands on your server
  • /status — quick server health check
  • /ssh <cmd> — run a command directly
  • /clear — reset conversation history

Run locally

cd telegram-bot
source ../.env
bun run index.ts

Deploy to server

# Copy bot to server
rsync -avz telegram-bot/ root@159.195.60.33:/opt/telegram-bot/
scp .env root@159.195.60.33:/opt/telegram-bot/.env

# On server: install bun, then
cd /opt/telegram-bot && bun install && bun run index.ts

Security

  • Set TELEGRAM_ALLOWED_USERS in .env to restrict access (comma-separated Telegram user IDs)
  • Empty = open to anyone (not recommended for production)