feat(bots/discord)!: update config

This commit is contained in:
PalmDevs
2024-07-04 20:54:17 +07:00
parent 0bfd03583d
commit ebf1ac7c08
3 changed files with 8 additions and 5 deletions

View File

@@ -35,6 +35,7 @@ export default {
},
logLevel: 'debug',
api: {
websocketUrl: 'ws://127.0.0.1:3000',
url: 'ws://127.0.0.1:3000',
disconnectLimit: 3,
},
} satisfies Config as Config

View File

@@ -15,7 +15,7 @@ export type Config = {
}
rolePresets?: {
checkExpiredEvery: number
guilds: Record<string, Record<string, RolePresetData>>
guilds: Record<string, Record<string, RolePresetConfig>>
}
messageScan?: {
allowedAttachmentMimeTypes: string[]
@@ -39,11 +39,12 @@ export type Config = {
}
logLevel: 'none' | 'error' | 'warn' | 'info' | 'log' | 'trace' | 'debug'
api: {
websocketUrl: string
url: string
disconnectLimit?: number
}
}
export type RolePresetData = {
export type RolePresetConfig = {
give: string[]
take: string[]
}

View File

@@ -66,6 +66,7 @@ export default {
},
logLevel: 'log',
api: {
websocketUrl: 'ws://127.0.0.1:3000',
url: 'ws://127.0.0.1:3000',
disconnectLimit: 3,
},
} satisfies Config as Config