refactor: move terminal message and channel ID persistence from a dedicated file to the main application configuration.

This commit is contained in:
syntaxbullet
2025-12-24 19:57:00 +01:00
parent eaaf569f4f
commit cddd8cdf57
2 changed files with 28 additions and 41 deletions

View File

@@ -51,6 +51,10 @@ export interface GameConfigType {
colorRoles: string[];
welcomeChannelId?: string;
welcomeMessage?: string;
terminal?: {
channelId: string;
messageId: string;
};
}
// Initial default config state
@@ -114,7 +118,11 @@ const configSchema = z.object({
visitorRole: z.string(),
colorRoles: z.array(z.string()).default([]),
welcomeChannelId: z.string().optional(),
welcomeMessage: z.string().optional()
welcomeMessage: z.string().optional(),
terminal: z.object({
channelId: z.string(),
messageId: z.string()
}).optional()
});
export function reloadConfig() {