mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 05:46:16 +00:00
feat(bots/discord)!: update config
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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[]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user