koishi-plugin-ll-brick 1.0.10 → 1.0.11
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 +2 -0
- package/lib/index.js +7 -4
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -42,7 +42,10 @@ exports.Config = koishi_1.Schema.intersect([
|
|
|
42
42
|
.description('「拍人」消息顶部图片 URL(需公网可访问;留空则不显示图片)'),
|
|
43
43
|
fireImage: koishi_1.Schema.string()
|
|
44
44
|
.default('https://img3.tofaka.com/autoupload/ontjZmlK09ZHnuFOv9znC7KXl_QqVl-bpSwqP4fJO68/20260624/xsnm/447X447/images_%282%29.jpg')
|
|
45
|
-
.description('
|
|
45
|
+
.description('「烧砖开始」消息顶部图片 URL(需公网可访问;留空则不显示图片)'),
|
|
46
|
+
fireDoneImage: koishi_1.Schema.string()
|
|
47
|
+
.default('https://img3.tofaka.com/autoupload/ontjZmlK09ZHnuFOv9znC7KXl_QqVl-bpSwqP4fJO68/20260624/xsnm/447X447/images_%282%29.jpg')
|
|
48
|
+
.description('「烧制完毕」消息顶部图片 URL(需公网可访问;留空则不显示图片)'),
|
|
46
49
|
signImage: koishi_1.Schema.string()
|
|
47
50
|
.default('https://img3.tofaka.com/autoupload/ontjZmlK09ZHnuFOv9znC7KXl_QqVl-bpSwqP4fJO68/20260624/yNf2/447X447/images_%281%29.jpg')
|
|
48
51
|
.description('「签到」消息顶部图片 URL(需公网可访问;留空则不显示图片)'),
|
|
@@ -196,7 +199,7 @@ async function apply(ctx, config) {
|
|
|
196
199
|
'📢 快去用 `砖头 拍人` 狠狠地拍一下吧!',
|
|
197
200
|
]);
|
|
198
201
|
if (session.platform === 'qq') {
|
|
199
|
-
await sendQQMarkdown(session, fireDone, config.
|
|
202
|
+
await sendQQMarkdown(session, fireDone, config.fireDoneImage, 447);
|
|
200
203
|
}
|
|
201
204
|
else {
|
|
202
205
|
await session.send(fireDone);
|
|
@@ -248,7 +251,7 @@ async function apply(ctx, config) {
|
|
|
248
251
|
if (koishi_1.Random.bool(probability)) {
|
|
249
252
|
const muteErr = await tryMute(session.userId);
|
|
250
253
|
const msg = mdCard([
|
|
251
|
-
`${atUser(session, targetUserId)} 夺过你的砖头,把你拍晕了 **${muteTime}**
|
|
254
|
+
`${atUser(session, targetUserId)} 夺过你的砖头,把你拍晕了 **${muteTime}** 秒`,
|
|
252
255
|
muteErr ? '(因为我不是群管理员,所以并没什么卵用)' : '',
|
|
253
256
|
]);
|
|
254
257
|
if (isQQ) {
|
|
@@ -260,7 +263,7 @@ async function apply(ctx, config) {
|
|
|
260
263
|
else {
|
|
261
264
|
const muteErr = await tryMute(targetUserId);
|
|
262
265
|
const msg = mdCard([
|
|
263
|
-
`${atUser(session, targetUserId)} 你被 ${atUser(session, session.userId)} 一砖头拍晕了 **${muteTime}**
|
|
266
|
+
`${atUser(session, targetUserId)} 你被 ${atUser(session, session.userId)} 一砖头拍晕了 **${muteTime}** 秒`,
|
|
264
267
|
muteErr ? '(因为我不是群管理员,所以并没什么卵用)' : '',
|
|
265
268
|
]);
|
|
266
269
|
if (isQQ) {
|