koishi-plugin-starfx-bot 0.25.0 → 0.25.1
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 +4 -23
- package/lib/plugins/drawHead.d.ts +2 -2
- package/package.json +3 -2
- package/readme.md +1 -0
package/lib/index.js
CHANGED
|
@@ -113,7 +113,8 @@ var package_default = {
|
|
|
113
113
|
"@biomejs/biome": "2.3.7",
|
|
114
114
|
"@ltxhhz/koishi-plugin-skia-canvas": "^0.0.10",
|
|
115
115
|
"@quanhuzeyu/koishi-plugin-qhzy-sharp": "^1.2.1",
|
|
116
|
-
"@quanhuzeyu/sharp-for-koishi": "^0.0.7"
|
|
116
|
+
"@quanhuzeyu/sharp-for-koishi": "^0.0.7",
|
|
117
|
+
"@types/mime-types": "^3.0.1"
|
|
117
118
|
}
|
|
118
119
|
};
|
|
119
120
|
|
|
@@ -1231,26 +1232,6 @@ var usage = `
|
|
|
1231
1232
|
<li>bdbd</li>
|
|
1232
1233
|
`;
|
|
1233
1234
|
var repeatContextMap = /* @__PURE__ */ new Map();
|
|
1234
|
-
var functionNames = [
|
|
1235
|
-
"lock",
|
|
1236
|
-
"sold",
|
|
1237
|
-
"repeat",
|
|
1238
|
-
"record",
|
|
1239
|
-
"record-push",
|
|
1240
|
-
"record-get",
|
|
1241
|
-
"atNotSay",
|
|
1242
|
-
"replyBot",
|
|
1243
|
-
"iLoveYou",
|
|
1244
|
-
"bdbd",
|
|
1245
|
-
"roll",
|
|
1246
|
-
"undo",
|
|
1247
|
-
"echo",
|
|
1248
|
-
"originImg",
|
|
1249
|
-
"sendLocalImage",
|
|
1250
|
-
"forward",
|
|
1251
|
-
"exchangeRate",
|
|
1252
|
-
"myId"
|
|
1253
|
-
];
|
|
1254
1235
|
var Config = import_koishi5.Schema.intersect([
|
|
1255
1236
|
import_koishi5.Schema.object({
|
|
1256
1237
|
openLock: import_koishi5.Schema.boolean().default(true).description("开启明日方舟封印功能"),
|
|
@@ -1329,7 +1310,7 @@ var Config = import_koishi5.Schema.intersect([
|
|
|
1329
1310
|
import_koishi5.Schema.object({
|
|
1330
1311
|
featureControl: import_koishi5.Schema.array(
|
|
1331
1312
|
import_koishi5.Schema.object({
|
|
1332
|
-
functionName: import_koishi5.Schema.
|
|
1313
|
+
functionName: import_koishi5.Schema.string(),
|
|
1333
1314
|
whitelist: import_koishi5.Schema.boolean(),
|
|
1334
1315
|
groups: import_koishi5.Schema.string()
|
|
1335
1316
|
})
|
|
@@ -1342,7 +1323,7 @@ function apply(ctx, cfg) {
|
|
|
1342
1323
|
baseDir = ctx.baseDir;
|
|
1343
1324
|
assetsDir = `${ctx.baseDir}/data/starfx-bot/assets`;
|
|
1344
1325
|
initAssets();
|
|
1345
|
-
|
|
1326
|
+
let featureControl = parseFeatureControl(cfg.featureControl);
|
|
1346
1327
|
if (cfg.openLock) {
|
|
1347
1328
|
ctx.command("封印 [param]").action(async ({ session }, param) => {
|
|
1348
1329
|
if (ctx.QhzySharp && detectControl(featureControl, session.guildId, "lock"))
|
|
@@ -17,14 +17,14 @@ export declare function handleBanGDreamConfig(options: any): Promise<{
|
|
|
17
17
|
* @param baseImage 被封印的图片url
|
|
18
18
|
* @return 画完的图片 h对象
|
|
19
19
|
*/
|
|
20
|
-
export declare function drawLock(ctx: Context, baseImage: string): Promise<
|
|
20
|
+
export declare function drawLock(ctx: Context, baseImage: string): Promise<h | "输入无效" | "发生错误">;
|
|
21
21
|
/**
|
|
22
22
|
* "卖掉了"绘图函数
|
|
23
23
|
* @param ctx
|
|
24
24
|
* @param baseImage
|
|
25
25
|
* @return 画完的图片 h对象
|
|
26
26
|
*/
|
|
27
|
-
export declare function drawSold(ctx: Context, baseImage: string): Promise<
|
|
27
|
+
export declare function drawSold(ctx: Context, baseImage: string): Promise<h | "输入无效" | "发生错误">;
|
|
28
28
|
/**
|
|
29
29
|
* BanG Dream!边框绘制功能
|
|
30
30
|
* @param ctx Koishi上下文
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"contributors": [
|
|
5
5
|
"StarFreedomX <starfreedomx@outlook.com>"
|
|
6
6
|
],
|
|
7
|
-
"version": "0.25.
|
|
7
|
+
"version": "0.25.1",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"typings": "lib/index.d.ts",
|
|
10
10
|
"files": [
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"@biomejs/biome": "2.3.7",
|
|
55
55
|
"@ltxhhz/koishi-plugin-skia-canvas": "^0.0.10",
|
|
56
56
|
"@quanhuzeyu/koishi-plugin-qhzy-sharp": "^1.2.1",
|
|
57
|
-
"@quanhuzeyu/sharp-for-koishi": "^0.0.7"
|
|
57
|
+
"@quanhuzeyu/sharp-for-koishi": "^0.0.7",
|
|
58
|
+
"@types/mime-types": "^3.0.1"
|
|
58
59
|
}
|
|
59
60
|
}
|
package/readme.md
CHANGED