Problem
packages/providers/src/services/MonthlyReportFormatter.ts hardcodes a specific Discord channel ID inside the formatted report message:
return `@everyone
📊 **TF2-QuickServer | ${monthName} ${report.year} Metrics & Costs**
...
The channel ID 1365408843676520508 is a hardcoded infrastructure detail inside a formatter class. This means:
- Anyone self-hosting TF2-QuickServer will have a broken/wrong channel mention in their monthly report
- The formatter is coupled to a specific Discord server's channel
Fix
Remove or externalize the hardcoded channel mention. Options:
Option B: Accept an optional supportChannelId parameter in the format() method and only include the mention if provided:
format(report: MonthlyUsageReport, options?: { supportChannelId?: string }): string {
const supportLine = options?.supportChannelId
: '';
// ...
}
Problem
packages/providers/src/services/MonthlyReportFormatter.tshardcodes a specific Discord channel ID inside the formatted report message:The channel ID
1365408843676520508is a hardcoded infrastructure detail inside a formatter class. This means:Fix
Remove or externalize the hardcoded channel mention. Options:
Option B: Accept an optional
supportChannelIdparameter in theformat()method and only include the mention if provided: