koishi-plugin-steam-family-bot
Version:
一个用于新版 Steam 家庭的库存监控 koishi Bot 插件
44 lines • 1.96 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Config = void 0;
const koishi_1 = require("koishi");
// libMonitorCron: ScheduleTaskConfig
// libInfoSyncerCron: ScheduleTaskConfig
// tokenRefreshCron: ScheduleTaskConfig
exports.Config = koishi_1.Schema.object({
SteamHelperAPIHost: koishi_1.Schema.string().default('https://steam-family-lib-viewer.ktlab.io'),
steamDataFetchMode: koishi_1.Schema.string().default('local'),
libMonitorCron: koishi_1.Schema.object({
enable: koishi_1.Schema.boolean().default(true),
cron: koishi_1.Schema.string().default('*/15 * * * *'),
}),
libInfoSyncerCron: koishi_1.Schema.object({
enable: koishi_1.Schema.boolean().default(true),
cron: koishi_1.Schema.string().default('23 23 * * *'),
}),
tokenRefreshCron: koishi_1.Schema.object({
enable: koishi_1.Schema.boolean().default(false),
cron: koishi_1.Schema.string().default('0 4 * * *'),
}),
// 'local-plugin' | 'remote'
// assume value is yaml
i18nMap: koishi_1.Schema.dict(koishi_1.Schema.string()).default({}),
preferPuppeteerMode: koishi_1.Schema.string().default('local-plugin'),
broswerlessWSEndpoint: koishi_1.Schema.string().default(''),
uploadImageToS3: koishi_1.Schema.object({
enable: koishi_1.Schema.boolean().default(false),
s3AccessKey: koishi_1.Schema.string().default(''),
s3SecretKey: koishi_1.Schema.string().default(''),
bucketName: koishi_1.Schema.string().default(''),
keyPrefix: koishi_1.Schema.string().default(''),
endpoint: koishi_1.Schema.string().default(''),
region: koishi_1.Schema.string().default(''),
baseURL: koishi_1.Schema.string().default(''),
}),
}).i18n({
// @ts-ignore
'zh-CN': require('./locales/zh-CN')._config,
// @ts-ignore
'en-US': require('./locales/en-US')._config,
});
//# sourceMappingURL=config.js.map