feat: Implement user enrollment interaction to assign a random class role and add new role configurations.

This commit is contained in:
syntaxbullet
2025-12-18 20:09:19 +01:00
parent a97a24f72a
commit 528a66a7ef
5 changed files with 124 additions and 1 deletions

View File

@@ -45,6 +45,8 @@ export interface GameConfigType {
currency: string;
}
};
studentRole: string;
visitorRole: string;
}
// Initial default config state
@@ -101,7 +103,10 @@ const configSchema = z.object({
max: z.number(),
currency: z.string(),
})
})
}),
studentRole: z.string(),
visitorRole: z.string()
});
export function reloadConfig() {
@@ -132,6 +137,8 @@ export function reloadConfig() {
};
config.commands = rawConfig.commands || {};
config.lootdrop = rawConfig.lootdrop;
config.studentRole = rawConfig.studentRole;
config.visitorRole = rawConfig.visitorRole;
console.log("🔄 Config reloaded from disk.");
}