forked from syntaxbullet/AuroraBot-discord
refactor: move terminal message and channel ID persistence from a dedicated file to the main application configuration.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user