koishi-plugin-weibo-post-monitor 0.0.1 → 0.0.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 +2 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -46,7 +46,7 @@ var Config = import_koishi.Schema.object({
46
46
  sendINFO: import_koishi.Schema.array(import_koishi.Schema.object({
47
47
  weiboUID: import_koishi.Schema.string().description("微博用户UID"),
48
48
  forward: import_koishi.Schema.boolean().default(false).description("是否监听转发"),
49
- keywords: import_koishi.Schema.array(import_koishi.Schema.string()).description("关键词(多个关键词用分号分隔)"),
49
+ keywords: import_koishi.Schema.string().description("关键词(多个关键词用分号分隔)"),
50
50
  groupID: import_koishi.Schema.string().description("需要发送的群组"),
51
51
  sendAll: import_koishi.Schema.boolean().default(false).description("@全体成员")
52
52
  })).description("监听&发送配置")
@@ -115,7 +115,7 @@ var getMessage = /* @__PURE__ */ __name((params, wbPost) => {
115
115
  weiboType = 1;
116
116
  }
117
117
  let message = "";
118
- let keywordsList = params.keywords.split(";") || [];
118
+ let keywordsList = params.keywords?.split(";") || [];
119
119
  if (weiboType == 0) {
120
120
  const pageInfo = wbPost?.page_info;
121
121
  if (!pageInfo) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-weibo-post-monitor",
3
3
  "description": "微博帖子更新推送插件,用于获取指定微博用户的最新帖子推送到指定群聊,参考代码https://github.com/moehuhu/weibo-monitor",
4
- "version": "0.0.1",
4
+ "version": "0.0.3",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [