koishi-plugin-ets2-tools-tmp 2.5.8 → 2.5.91
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/command/tmpQuery/tmpQueryText.js +22 -20
- package/lib/index.js +8 -7
- package/package.json +1 -1
|
@@ -221,26 +221,28 @@ module.exports = async (ctx, cfg, session, tmpId) => {
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
224
|
+
if (cfg.commands?.tmpQuerySponsor) {
|
|
225
|
+
message += '\n\n🌟是否Patreon支持者: '
|
|
226
|
+
if (playerInfo.data.isSponsor) {
|
|
227
|
+
message += '是'
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
message += '否'
|
|
231
|
+
}
|
|
232
|
+
message += '\n💰当前赞助金额: '
|
|
233
|
+
if (playerInfo.data.sponsorAmount == 'null') {
|
|
234
|
+
message += '0美金'
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
message += playerInfo.data.sponsorAmount / 100 + '美金'
|
|
238
|
+
}
|
|
239
|
+
message += '\n💰全部赞助金额: '
|
|
240
|
+
if (playerInfo.data.sponsorCumulativeAmount == 'null') {
|
|
241
|
+
message += '0美金'
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
message += playerInfo.data.sponsorCumulativeAmount / 100 + '美金'
|
|
245
|
+
}
|
|
244
246
|
}
|
|
245
247
|
return message;
|
|
246
248
|
};
|
package/lib/index.js
CHANGED
|
@@ -79,7 +79,8 @@ exports.Config = koishi_1.Schema.intersect([
|
|
|
79
79
|
resetPassword: koishi_1.Schema.boolean().default(false).description('是否启用车队平台重置密码功能'),
|
|
80
80
|
tmpActivityService: koishi_1.Schema.boolean().default(false).description('是否启用车队活动查询'),
|
|
81
81
|
tmpVersionCheck: koishi_1.Schema.boolean().default(false).description('是否启用TMP版本更新查询'),
|
|
82
|
-
tmpQueryGameTime: koishi_1.Schema.boolean().default(true).description('是否启用游戏时长查询功能')
|
|
82
|
+
tmpQueryGameTime: koishi_1.Schema.boolean().default(true).description('是否启用游戏时长查询功能'),
|
|
83
|
+
tmpQuerySponsor: koishi_1.Schema.boolean().default(true).description('是否启用Patreon支持者查询')
|
|
83
84
|
}).description('指令配置'),
|
|
84
85
|
baiduTranslate: koishi_1.Schema.object({
|
|
85
86
|
enable: koishi_1.Schema.boolean().default(false).description('是否启用百度翻译'),
|
|
@@ -276,16 +277,16 @@ function registerBaseCommands(ctx, cfg) {
|
|
|
276
277
|
}
|
|
277
278
|
|
|
278
279
|
if (cfg.commands?.tmpFootprint) {
|
|
279
|
-
ctx.command('
|
|
280
|
+
ctx.command('近十日足迹 [tmpId:string]')
|
|
280
281
|
.usage("查询ETS服务器今日足迹")
|
|
281
|
-
.example("
|
|
282
|
-
.example("
|
|
282
|
+
.example("近十日足迹")
|
|
283
|
+
.example("近十日足迹 12345")
|
|
283
284
|
.action(async ({ session }, tmpId) => await commands.tmpFootprint(ctx, session, ServerType.ets, tmpId, 'tenday'));
|
|
284
285
|
|
|
285
|
-
ctx.command('
|
|
286
|
+
ctx.command('近十日足迹p [tmpId:string]')
|
|
286
287
|
.usage("查询Promods服务器今日足迹")
|
|
287
|
-
.example("
|
|
288
|
-
.example("
|
|
288
|
+
.example("近十日足迹p")
|
|
289
|
+
.example("近十日足迹p 12345")
|
|
289
290
|
.action(async ({ session }, tmpId) => await commands.tmpFootprint(ctx, session, ServerType.promods, tmpId, 'tenday'));
|
|
290
291
|
|
|
291
292
|
ctx.command('昨日足迹 [tmpId:string]')
|