koishi-plugin-ets2-tools-tmp 1.2.0 → 1.2.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.
Files changed (2) hide show
  1. package/lib/index.js +14 -21
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -212,25 +212,6 @@ class ActivityService {
212
212
  });
213
213
  }
214
214
 
215
- getDebugInfo() {
216
- let startRemindersSent = 0;
217
- for (const reminderKey of this.sentReminders) {
218
- if (reminderKey.endsWith('_started')) {
219
- startRemindersSent++;
220
- }
221
- }
222
-
223
- return `📊 TMP-BOT 插件调试信息:\n` +
224
- `• 今日活动: ${this.todayActivities.length} 个\n` +
225
- `• TMP活动: ${this.todayTMPEvents.length} 个\n` +
226
- `• 已发送提醒: ${this.sentReminders.size} 个\n` +
227
- ` - 活动开始提醒: ${startRemindersSent} 个\n` +
228
- `• 无活动通知: ${this.sentNoActivityNotification ? "已发送" : "未发送"}\n` +
229
- `• 活跃定时器: ${this.timers.length} 个\n` +
230
- `• 调试模式: ${this.cfg.debugMode ? "✅ 开启" : "❌ 关闭"}\n` +
231
- `• 日志选项: API=${this.cfg.logApiResponses ? "✅" : "❌"}, 定时=${this.cfg.logTimingDetails ? "✅" : "❌"}, 匹配=${this.cfg.logActivityMatching ? "✅" : "❌"}, 消息=${this.cfg.logMessageSending ? "✅" : "❌"}`;
232
- }
233
-
234
215
  setupDailyTasks() {
235
216
  const now = new Date();
236
217
  const localTime = now.toLocaleString();
@@ -738,42 +719,54 @@ class ActivityService {
738
719
 
739
720
  function registerBaseCommands(ctx, cfg) {
740
721
  ctx.command('查询 <tmpId>')
722
+ .usage("查询TMP玩家信息")
741
723
  .action(async ({ session }, tmpId) => await commands.tmpQuery(ctx, cfg, session, tmpId));
742
724
 
743
725
  ctx.command('美卡服务器')
726
+ .usage("查询美国卡车模拟器TMP服务器信息")
744
727
  .action(async () => await commands.tmpServer(ctx, cfg, 'ATS'));
745
728
 
746
729
  ctx.command('欧卡服务器')
730
+ .usage("查询欧洲卡车模拟2TMP服务器信息")
747
731
  .action(async () => await commands.tmpServer(ctx, cfg, 'ETS2'));
748
732
 
749
733
  ctx.command('绑定 <tmpId>')
734
+ .usage("绑定TmpId")
750
735
  .action(async ({ session }, tmpId) => await commands.tmpBind(ctx, cfg, session, tmpId));
751
736
 
752
737
  ctx.command('路况 <serverName>')
738
+ .usage("查询欧洲卡车模拟2服务器路况")
739
+ .example("路况 - s1")
753
740
  .action(async ({ session }, serverName) => await commands.tmpTraffic(ctx, cfg, serverName));
754
741
 
755
742
  ctx.command('定位 <tmpId>')
743
+ .usage("定位玩家线上位置")
756
744
  .action(async ({ session }, tmpId) => await commands.tmpPosition(ctx, cfg, session, tmpId));
757
745
 
758
746
  ctx.command('tmp版本')
747
+ .usage("查询TruckersMP支持的游戏版本")
759
748
  .action(async () => await commands.tmpVersion(ctx));
760
749
 
761
750
  ctx.command('地图dlc价格')
751
+ .usage("查询欧洲卡车模拟2地图dlc价格")
762
752
  .action(async ({ session }) => await commands.tmpDlcMap(ctx, session));
763
753
 
764
754
  ctx.command('里程排行榜')
755
+ .usage("查询欧洲卡车模拟2里程排行榜")
765
756
  .action(async ({ session }) => await commands.tmpMileageRanking(ctx, session, MileageRankingType.total));
766
757
 
767
758
  ctx.command('今日里程排行榜')
759
+ .usage("查询欧洲卡车模拟2今日里程排行榜")
768
760
  .action(async ({ session }) => await commands.tmpMileageRanking(ctx, session, MileageRankingType.today));
769
761
 
770
762
  ctx.command('vtc查询 <vtcid>')
763
+ .usage("查询TruckersMP VTC信息")
771
764
  .action(async ({ session }, vtcid) => await commands.tmpVtc(ctx, cfg, session, vtcid));
772
765
 
773
766
  ctx.command(`重置密码 [targetTeamId:string]`, "重置欧卡车队平台密码")
774
767
  .usage("重置自己的密码,或管理员重置指定teamId的密码")
775
- .example(`重置密码new - 重置自己的密码`)
776
- .example(`重置密码new 123 - 管理员重置指定teamId的密码`)
768
+ .example(`重置密码 - 重置自己的密码`)
769
+ .example(`重置密码 - 管理员重置指定teamId的密码`)
777
770
  .action(async ({ session }, targetTeamId) => await commands.resetPassword(ctx, cfg, session, targetTeamId));
778
771
 
779
772
  ctx.command(`查询积分 [targetQQ:string]`, "查询欧卡车队平台积分")
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ets2-tools-tmp",
3
3
  "description": "欧卡2 TMP在线查询、车队平台查询及活动提醒",
4
- "version": "1.2.0",
4
+ "version": "1.2.1",
5
5
  "contributors": [
6
6
  "opwop <slhp1013@qq.com>",
7
7
  "bot_actions <168329908@qq.com>"