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.
- package/lib/index.js +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.
|
|
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
|
|
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