mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
feat(bots/discord)!: update config
This commit is contained in:
@@ -35,6 +35,7 @@ export default {
|
|||||||
},
|
},
|
||||||
logLevel: 'debug',
|
logLevel: 'debug',
|
||||||
api: {
|
api: {
|
||||||
websocketUrl: 'ws://127.0.0.1:3000',
|
url: 'ws://127.0.0.1:3000',
|
||||||
|
disconnectLimit: 3,
|
||||||
},
|
},
|
||||||
} satisfies Config as Config
|
} satisfies Config as Config
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export type Config = {
|
|||||||
}
|
}
|
||||||
rolePresets?: {
|
rolePresets?: {
|
||||||
checkExpiredEvery: number
|
checkExpiredEvery: number
|
||||||
guilds: Record<string, Record<string, RolePresetData>>
|
guilds: Record<string, Record<string, RolePresetConfig>>
|
||||||
}
|
}
|
||||||
messageScan?: {
|
messageScan?: {
|
||||||
allowedAttachmentMimeTypes: string[]
|
allowedAttachmentMimeTypes: string[]
|
||||||
@@ -39,11 +39,12 @@ export type Config = {
|
|||||||
}
|
}
|
||||||
logLevel: 'none' | 'error' | 'warn' | 'info' | 'log' | 'trace' | 'debug'
|
logLevel: 'none' | 'error' | 'warn' | 'info' | 'log' | 'trace' | 'debug'
|
||||||
api: {
|
api: {
|
||||||
websocketUrl: string
|
url: string
|
||||||
|
disconnectLimit?: number
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type RolePresetData = {
|
export type RolePresetConfig = {
|
||||||
give: string[]
|
give: string[]
|
||||||
take: string[]
|
take: string[]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ export default {
|
|||||||
},
|
},
|
||||||
logLevel: 'log',
|
logLevel: 'log',
|
||||||
api: {
|
api: {
|
||||||
websocketUrl: 'ws://127.0.0.1:3000',
|
url: 'ws://127.0.0.1:3000',
|
||||||
|
disconnectLimit: 3,
|
||||||
},
|
},
|
||||||
} satisfies Config as Config
|
} satisfies Config as Config
|
||||||
|
|||||||
Reference in New Issue
Block a user