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

@ -1,6 +1,12 @@
import process from 'node:process'
import process, { env } from 'node:process'
import { Client } from 'discord.js-selfbot-v13'
import env from './env.js'
const DISCORD_TOKEN = env['DISCORD_TOKEN']
if (!DISCORD_TOKEN) {
console.error('DISCORD_TOKEN is not set')
process.exit(1)
}
const link = process.argv[2]
if (!link) {