diff --git a/bots/discord/config.revanced.ts b/bots/discord/config.revanced.ts index acd2afe..09c4314 100644 --- a/bots/discord/config.revanced.ts +++ b/bots/discord/config.revanced.ts @@ -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 diff --git a/bots/discord/config.schema.ts b/bots/discord/config.schema.ts index 0dbe458..2563266 100644 --- a/bots/discord/config.schema.ts +++ b/bots/discord/config.schema.ts @@ -15,7 +15,7 @@ export type Config = { } rolePresets?: { checkExpiredEvery: number - guilds: Record> + guilds: Record> } 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[] } diff --git a/bots/discord/config.ts b/bots/discord/config.ts index d02748e..40727a4 100644 --- a/bots/discord/config.ts +++ b/bots/discord/config.ts @@ -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