koishi-plugin-disaster-warning 0.0.2 → 0.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.d.ts +4 -1
- package/lib/index.js +4 -1
- package/package.json +16 -2
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Context, Schema } from 'koishi';
|
|
2
2
|
export declare const name = "disaster-warning";
|
|
3
|
-
export declare const inject:
|
|
3
|
+
export declare const inject: {
|
|
4
|
+
required: string[];
|
|
5
|
+
optional: string[];
|
|
6
|
+
};
|
|
4
7
|
export interface Config {
|
|
5
8
|
enabled: boolean;
|
|
6
9
|
target_groups: string[];
|
package/lib/index.js
CHANGED
|
@@ -6,7 +6,10 @@ const koishi_1 = require("koishi");
|
|
|
6
6
|
const service_1 = require("./service");
|
|
7
7
|
const commands_1 = require("./commands");
|
|
8
8
|
exports.name = 'disaster-warning';
|
|
9
|
-
exports.inject =
|
|
9
|
+
exports.inject = {
|
|
10
|
+
required: ['http'],
|
|
11
|
+
optional: ['database']
|
|
12
|
+
};
|
|
10
13
|
exports.Config = koishi_1.Schema.object({
|
|
11
14
|
enabled: koishi_1.Schema.boolean().default(true).description('启用灾害预警插件'),
|
|
12
15
|
target_groups: koishi_1.Schema.array(koishi_1.Schema.string()).default([]).description('需要推送消息的群号列表'),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-disaster-warning",
|
|
3
|
-
"description": "
|
|
4
|
-
"version": "0.0.
|
|
3
|
+
"description": "Koishi 灾害预警插件,支持多数据源(地震、海啸、气象预警)",
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -31,5 +31,19 @@
|
|
|
31
31
|
"@types/ws": "^8.5.10",
|
|
32
32
|
"koishi": "^4.18.0",
|
|
33
33
|
"typescript": "^5.0.0"
|
|
34
|
+
},
|
|
35
|
+
"koishi": {
|
|
36
|
+
"description": {
|
|
37
|
+
"en": "Disaster warning plugin for Koishi, supporting Earthquake, Tsunami, and Weather alerts from multiple sources.",
|
|
38
|
+
"zh": "Koishi 灾害预警插件,支持多数据源(地震、海啸、气象预警)"
|
|
39
|
+
},
|
|
40
|
+
"service": {
|
|
41
|
+
"required": [
|
|
42
|
+
"http"
|
|
43
|
+
],
|
|
44
|
+
"optional": [
|
|
45
|
+
"database"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
34
48
|
}
|
|
35
49
|
}
|