@mashroomwolf/koishi-plugin-daynew 1.0.2 → 1.0.4

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 CHANGED
@@ -29,7 +29,7 @@ module.exports = __toCommonJS(src_exports);
29
29
  var import_koishi = require("koishi");
30
30
  var name = "daily-news";
31
31
  var inject = {
32
- required: ["cron"],
32
+ required: ["cron", "database"],
33
33
  optional: ["adapter-onebot"]
34
34
  };
35
35
  var Config = import_koishi.Schema.intersect([
@@ -55,7 +55,7 @@ var Config = import_koishi.Schema.intersect([
55
55
  ).default([])
56
56
  })
57
57
  ).default([]).description("信息目标列表")
58
- }).description("信息目标配置")
58
+ }).description("发送信息配置")
59
59
  ]);
60
60
  function apply(ctx, config) {
61
61
  const UrlList = config.url.list;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mashroomwolf/koishi-plugin-daynew",
3
3
  "description": "",
4
- "version": "1.0.2",
4
+ "version": "1.0.4",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -9,7 +9,7 @@
9
9
  "dist"
10
10
  ],
11
11
  "license": "MIT",
12
- "homepage": "https://github.com/snowwolfair/mashroomwolf-koishi-plugin-dice-dagger-heart",
12
+ "homepage": "https://github.com/snowwolfair/daynew",
13
13
  "scripts": {},
14
14
  "keywords": [
15
15
  "chatbot",
@@ -30,12 +30,14 @@
30
30
  },
31
31
  "service": {
32
32
  "required": [
33
- "cron"
33
+ "cron",
34
+ "database"
34
35
  ],
35
36
  "optional": [
36
37
  "adapter-onebot"
37
38
  ]
38
39
  },
39
- "preview": true
40
+ "preview": true,
41
+ "browser": true
40
42
  }
41
43
  }
package/readme.md CHANGED
@@ -1,3 +1,16 @@
1
1
  # @mashroomwolf/koishi-plugin-daily-news
2
2
 
3
- [![npm](https://img.shields.io/npm/v/@mashroomwolf/koishi-plugin-daily-news?style=flat-square)](https://www.npmjs.com/package/@mashroomwolf/koishi-plugin-daily-news)
3
+ [![npm](https://img.shields.io/npm/v/@mashroomwolf/koishi-plugin-daynew?style=flat-square)](https://www.npmjs.com/package/@mashroomwolf/koishi-plugin-daynew)
4
+
5
+ 一个临时的,暂时仅支持 QQ onebot 机器人的每日新闻插件
6
+
7
+ # 食用方法
8
+
9
+ 在发送信息配置中`添加项目`, 然后输入机器人所在群号即可
10
+
11
+ # 注意事项
12
+
13
+ - 必须服务:cron 会标橙色是正常现象, 显示`koishi-plugin-cron (已加载)`时即可使用
14
+ - 插件默认每天早上 9 点发送新闻
15
+ - 目前仅支持 QQ onebot 机器人
16
+ - 如果新闻源未读取,请自行添加其他新闻源