UNPKG

koishi-plugin-beatsaber-bot

Version:

一个 用于 BeatSaber 的 koishi Bot 插件

29 lines (28 loc) 1.53 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Config = void 0; const koishi_1 = require("koishi"); exports.Config = koishi_1.Schema.object({ beatSaverHost: koishi_1.Schema.string().default('https://api.beatsaver.com'), beatSaverWSHost: koishi_1.Schema.string().default('wss://ws.beatsaver.com/maps'), remoteRenderURL: koishi_1.Schema.string().default('https://aiobs.ktlab.io'), minRawMatchMapIdLength: koishi_1.Schema.number().default(3), renderMode: koishi_1.Schema.string().default('remote'), defaultWaitTimeout: koishi_1.Schema.number().default(3000), rankWaitTimeout: koishi_1.Schema.number().default(8000), bsNotifyMonitorCron: koishi_1.Schema.string().default("*/15 * * * *"), tokenRefreshCron: koishi_1.Schema.string().default("0 20 * * *"), bsOauthClientId: koishi_1.Schema.string().default('bs-oauth-client-id'), bsOauthClientSecret: koishi_1.Schema.string().default('bs-oauth-client-secret'), blOauthClientId: koishi_1.Schema.string().default('bl-oauth-client-id'), blOauthClientSecret: koishi_1.Schema.string().default('bl-oauth-client-secret'), tempCron: koishi_1.Schema.string().default("0 0 * * *"), BLScoreFilters: koishi_1.Schema.array(koishi_1.Schema.object({ filterName: koishi_1.Schema.string(), filterParams: koishi_1.Schema.array(koishi_1.Schema.any()) })).default([]) }) .i18n({ 'zh-CN': require('./locales/zh-CN')._config, 'en-US': require('./locales/en-US')._config, });