Commit graph

32 commits

Author SHA1 Message Date
Eddy de Vink
b3178ef3f2 fix: remove pinnedMessageService, fix port 3000→3001 in .env.example, annotate specs 2026-07-17 12:06:12 +02:00
Eddy de Vink
9bb5849969 docs: add Telegram watchdog to README, update project structure and error handling 2026-07-12 13:50:21 +02:00
Eddy de Vink
f03da1c541 fix: dienst-bot startup notification via Telegram, fix first health check no-op 2026-07-12 13:46:49 +02:00
Eddy de Vink
92289adc03 feat: add Telegram watchdog as backup notification channel
- New src/telegramBot.js: separate process for health checks + Telegram notifications
- Updated src/whatsappApi.js notifyAdmin(): falls back to Telegram when WhatsApp API is down
- Updated .env.example with TELEGRAM_* configuration variables
- Design doc and implementation plan
2026-07-12 13:34:04 +02:00
Eddy
586f4994a6 docs: update from PM2 to systemd 2026-06-19 01:00:33 +02:00
Eddy
bcc19763ad chore: remove macOS wrapper script (codesign workaround, migrated to nextcloud) 2026-06-19 00:52:09 +02:00
Eddy
1e61e314a6 docs: update deployment from Mac Mini launchd to nextcloud PM2 2026-06-19 00:36:13 +02:00
Eddy de Vink
2be27f70f1 Resilience: retry logic, graceful shutdown, SO_REUSEADDR, LoadDaemon ThrottleInterval
- whatsappApi.js: exponential backoff (3 retries) voor 5xx en connectiefouten op sendTextMessage en sendImageMessage
- index.js: SO_REUSEADDR port binding, EADDRINUSE retry, graceful shutdown (SIGTERM/SIGINT)
- README.md: documentatie resilience maatregelen bijgewerkt
- LoadDaemon plist: ThrottleInterval=10 tegen restart-loops
2026-06-17 12:40:43 +02:00
Eddy de Vink
f46889956b fix: wrap launchd in codesign wrapper to survive brew upgrade node 2026-06-13 10:33:58 +02:00
Eddy de Vink
e4d817ff80 refactor: switch to dedicated group, remove @mention requirement, add pinned message service
- Change ALLOWED_GROUP to Dienst opvragen EdGPT-EBS (120363407613652082@g.us)
- Remove isBotMentioned check (no @mention needed)
- Match only exact 4-digit messages (regex /^\s*(\d{4})\s*$/)
- Add pinnedMessageService.js: auto-repins welcome message when expired
- Move incrementDaily() to count all 4-digit messages, not just successful ones
- Update daily summary with emoji
- Update docs and .env.example
2026-05-26 09:20:49 +02:00
5b83076b33 README.md bijwerken 2026-05-12 23:04:53 +02:00
Eddy
3dc27eed9b chore: add AGENTS.md to .gitignore 2026-05-12 22:56:34 +02:00
Eddy
4b6d4b742c chore: stop tracking .env 2026-05-12 22:50:43 +02:00
Eddy
b98ef0b714 docs: add spam protection implementation plan 2026-05-12 22:49:45 +02:00
Eddy
2e19540db4 docs: add daily summary feature to README 2026-05-12 22:49:45 +02:00
Eddy
2dabcf0a8e feat: add node-cron daily summary job at 10:00 2026-05-12 22:49:07 +02:00
Eddy
f7bc98eaed feat: integrate dailyStats counter into message handler 2026-05-12 22:49:07 +02:00
Eddy
64e239b368 feat: add dailyStats module for tracking daily request totals 2026-05-12 22:49:07 +02:00
Eddy
5a757ab8be docs: add daily WhatsApp summary implementation plan 2026-05-12 22:49:07 +02:00
Eddy
9569485f78 docs: add daily WhatsApp summary design spec 2026-05-12 22:49:07 +02:00
ee3d0ffb8e README.md bijwerken 2026-05-11 20:21:32 +02:00
c6c2d3f42d README.md bijwerken 2026-05-11 20:19:30 +02:00
Eddy
7176f09387 docs: add spam protection section and rateLimiter.js to README 2026-05-11 20:11:45 +02:00
Eddy
100b2af449 feat: add rate limiting config option 2026-05-11 20:10:42 +02:00
Eddy
3d933c96a6 feat: integrate rate limiter into message handler 2026-05-11 20:07:07 +02:00
Eddy
52c51fbf3f feat: add rate limiter module 2026-05-11 20:02:16 +02:00
Eddy
f9d56fec33 docs: add vibecoding credits to README 2026-05-11 19:57:12 +02:00
Eddy
a9459a16be feat: add README, .env.example, fix mention detection with spaces, add diensten to .gitignore 2026-05-11 19:38:11 +02:00
Eddy
0e7272dadd fix: add .gitignore, remove node_modules and diensten from tracking 2026-05-11 19:00:32 +02:00
Eddy
6e44a68fe1 feat: complete dienst-bot v1.0 - webhook receiver, PNG sender, PM2 ready 2026-05-11 19:00:05 +02:00
Eddy
3e6b33f103 feat: add core modules - dienstService, whatsappApi, messageHandler, webhook server 2026-05-11 18:52:50 +02:00
Eddy
f8a708c9d0 feat: scaffold project with dependencies and env config 2026-05-11 18:49:11 +02:00