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.
@@ -221,26 +221,28 @@ module.exports = async (ctx, cfg, session, tmpId) => {
221
221
  }
222
222
  }
223
223
 
224
- message += '\n\n🌟是否Patreon支持者: '
225
- if (playerInfo.data.isSponsor) {
226
- message += '是'
227
- }
228
- else {
229
- message += '否'
230
- }
231
- message += '\n💰当前赞助金额: '
232
- if (playerInfo.data.sponsorAmount == 'null') {
233
- message += '0美金'
234
- }
235
- else {
236
- message += playerInfo.data.sponsorAmount / 100 + '美金'
237
- }
238
- message += '\n💰全部赞助金额: '
239
- if (playerInfo.data.sponsorCumulativeAmount == 'null') {
240
- message += '0美金'
241
- }
242
- else {
243
- message += playerInfo.data.sponsorCumulativeAmount / 100 + '美金'
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('本月足迹 [tmpId:string]')
280
+ ctx.command('近十日足迹 [tmpId:string]')
280
281
  .usage("查询ETS服务器今日足迹")
281
- .example("本月足迹")
282
- .example("本月足迹 12345")
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('本月足迹p [tmpId:string]')
286
+ ctx.command('近十日足迹p [tmpId:string]')
286
287
  .usage("查询Promods服务器今日足迹")
287
- .example("本月足迹p")
288
- .example("本月足迹p 12345")
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]')
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ets2-tools-tmp",
3
3
  "description": "欧卡2 TruckersMP信息查询、车队平台查询及活动提醒",
4
- "version": "2.5.8",
4
+ "version": "2.5.91",
5
5
  "contributors": [
6
6
  "opwop <slhp1013@qq.com>",
7
7
  "bot_actions <168329908@qq.com>"