forked from syntaxbullet/AuroraBot-discord
feat: Implement user enrollment interaction to assign a random class role and add new role configurations.
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user