export default class DefaultValues { public static values: ISettingValue[] = []; public static useDevPrefix: boolean = false; public static GetValue(key: string): string | undefined { this.SetValues(); const res = this.values.find(x => x.Key == key); if (!res) { return undefined; } return res.Value; } private static SetValues() { if (this.values.length == 0) { // Bot if (this.useDevPrefix) { this.values.push({ Key: "bot.prefix", Value: "d!" }); } else { this.values.push({ Key: "bot.prefix", Value: "v!" }); } // Commands this.values.push({ Key: "commands.disabled", Value: "" }); this.values.push({ Key: "commands.disabled.message", Value: "This command is disabled." }); // Role (Command) this.values.push({ Key: "role.assignable", Value: "" }); this.values.push({ Key: "role.moderator", Value: "Moderator" }); this.values.push({ Key: "role.administrator", Value: "Administrator"}); this.values.push({ Key: "role.muted", Value: "Muted" }); // Rules (Command) this.values.push({ Key: "rules.file", Value: "data/rules/rules" }); // Channels this.values.push({ Key: "channels.logs.message", Value: "message-logs" }); this.values.push({ Key: "channels.logs.member", Value: "member-logs" }); this.values.push({ Key: "channels.logs.mod", Value: "mod-logs" }); // Verification this.values.push({ Key: "verification.enabled", Value: "false" }); this.values.push({ Key: "verification.channel", Value: "entry" }); this.values.push({ Key: "verification.role", Value: "Entry" }); this.values.push({ Key: "verification.code", Value: "" }); } } } export interface ISettingValue { Key: string, Value: string, };