koishi-plugin-cs2-update-log 2.3.1 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +3 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -31,8 +31,8 @@ const BRAND_LOGO_PATH = node_path_1.default.join(ASSET_DIR, 'brand-logo.png');
31
31
  const GITHUB_QRCODE_PATH = node_path_1.default.join(ASSET_DIR, 'github-qrcode.png');
32
32
  const loggerName = 'cs2-update-log';
33
33
  exports.Config = koishi_1.Schema.object({
34
- interval: koishi_1.Schema.number().min(5).step(1).default(15).description('轮询间隔,单位:秒。'),
35
- count: koishi_1.Schema.number().min(1).max(100).step(1).default(20).description('每次从 Steam 拉取的新闻数量。'),
34
+ interval: koishi_1.Schema.number().min(5).step(1).default(30).description('轮询间隔,单位:秒。'),
35
+ count: koishi_1.Schema.number().min(1).max(100).step(1).default(5).description('每次从 Steam 拉取的新闻数量。'),
36
36
  stateFile: koishi_1.Schema.string().default('.koishi-cs2-update-log.json').description('本地 gid 判重文件路径。相对路径会基于 Koishi 启动目录解析。'),
37
37
  pushOnFirstRun: koishi_1.Schema.boolean().default(false).description('首次启动时是否推送历史内容。默认关闭,避免刷屏。'),
38
38
  targets: koishi_1.Schema.array(koishi_1.Schema.object({
@@ -668,7 +668,7 @@ function buildCardHtml(news, title, bodyMarkdown, config, assets) {
668
668
  const categoryTag = news.category === 'update' ? 'UPDATE LOG' : 'ANNOUNCEMENT';
669
669
  const rendered = markdown.render(bodyMarkdown);
670
670
  const publishedAt = formatDate(news.item.date);
671
- const author = news.item.author || 'Valve';
671
+ const author = news.item.author || 'BestBcz';
672
672
  return `<!doctype html>
673
673
  <html lang="zh-CN">
674
674
  <head>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koishi-plugin-cs2-update-log",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "Koishi plugin for monitoring CS2 official Steam announcements and update logs.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",