refactor: convert to modular system with Hytale update trackers

- Core infrastructure: module interface, Telegram wrapper, OAuth token manager, state store
- Migrate Discord forwarder to modules/discord-forwarder/
- Add Hytale update trackers: launcher, patches, downloader, server
- Support multiple Telegram chats with per-chat topic IDs
- Unified config with legacy migration and env var fallbacks
- Auto-refresh OAuth tokens (5min buffer)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
devilreef 2026-01-16 01:18:15 +06:00
parent 369a37903f
commit a7d4df6986
29 changed files with 1368 additions and 121 deletions

View file

@ -0,0 +1,13 @@
import type { PatchesUpdate } from './tracker.js'
export function formatPatchesUpdate(update: PatchesUpdate): string {
const { patchline, version, previousVersion, patchId } = update
const emoji = patchline === 'release' ? '🎮' : '🧪'
return `<b>${emoji} Hytale Game Patch Update</b>
<b>Patchline:</b> <code>${patchline}</code>
<b>New version:</b> <code>${version}</code>
${previousVersion !== 'unknown' ? `<b>Previous:</b> <code>${previousVersion}</code>` : ''}
${patchId ? `<b>Patch ID:</b> <code>${patchId}</code>` : ''}`
}