koishi-plugin-aktmp 1.0.0

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 (63) hide show
  1. package/lib/api/evmOpenApi.d.ts +45 -0
  2. package/lib/api/evmOpenApi.js +158 -0
  3. package/lib/api/truckersMpApi.d.ts +34 -0
  4. package/lib/api/truckersMpApi.js +110 -0
  5. package/lib/api/truckersMpMapApi.d.ts +6 -0
  6. package/lib/api/truckersMpMapApi.js +25 -0
  7. package/lib/api/truckyAppApi.d.ts +12 -0
  8. package/lib/api/truckyAppApi.js +32 -0
  9. package/lib/command/tmpBind.d.ts +2 -0
  10. package/lib/command/tmpBind.js +19 -0
  11. package/lib/command/tmpDlcMap.d.ts +3 -0
  12. package/lib/command/tmpDlcMap.js +33 -0
  13. package/lib/command/tmpFootprint.d.ts +3 -0
  14. package/lib/command/tmpFootprint.js +82 -0
  15. package/lib/command/tmpMileageRanking.d.ts +3 -0
  16. package/lib/command/tmpMileageRanking.js +55 -0
  17. package/lib/command/tmpPosition.d.ts +3 -0
  18. package/lib/command/tmpPosition.js +95 -0
  19. package/lib/command/tmpQuery.d.ts +2 -0
  20. package/lib/command/tmpQuery.js +148 -0
  21. package/lib/command/tmpServer/tmpServer.d.ts +2 -0
  22. package/lib/command/tmpServer/tmpServer.js +15 -0
  23. package/lib/command/tmpServer/tmpServerImg.d.ts +3 -0
  24. package/lib/command/tmpServer/tmpServerImg.js +35 -0
  25. package/lib/command/tmpServer/tmpServerText.d.ts +2 -0
  26. package/lib/command/tmpServer/tmpServerText.js +40 -0
  27. package/lib/command/tmpTraffic/tmpTraffic.d.ts +2 -0
  28. package/lib/command/tmpTraffic/tmpTraffic.js +15 -0
  29. package/lib/command/tmpTraffic/tmpTrafficMap.d.ts +3 -0
  30. package/lib/command/tmpTraffic/tmpTrafficMap.js +119 -0
  31. package/lib/command/tmpTraffic/tmpTrafficText.d.ts +2 -0
  32. package/lib/command/tmpTraffic/tmpTrafficText.js +122 -0
  33. package/lib/command/tmpUnbind.js +17 -0
  34. package/lib/command/tmpVersion.d.ts +2 -0
  35. package/lib/command/tmpVersion.js +31 -0
  36. package/lib/database/guildBind.d.ts +22 -0
  37. package/lib/database/guildBind.js +55 -0
  38. package/lib/database/model.d.ts +2 -0
  39. package/lib/database/model.js +65 -0
  40. package/lib/database/translateCache.d.ts +14 -0
  41. package/lib/database/translateCache.js +31 -0
  42. package/lib/index.d.ts +14 -0
  43. package/lib/index.js +59 -0
  44. package/lib/resource/dlc.html +115 -0
  45. package/lib/resource/footprint.html +241 -0
  46. package/lib/resource/mileage-leaderboard.html +363 -0
  47. package/lib/resource/package/SEGUIEMJ.TTF +0 -0
  48. package/lib/resource/package/ets-map.js +63 -0
  49. package/lib/resource/package/leaflet/heatmap.min.js +9 -0
  50. package/lib/resource/package/leaflet/leaflet-heatmap.js +246 -0
  51. package/lib/resource/package/leaflet/leaflet.min.css +1 -0
  52. package/lib/resource/package/leaflet/leaflet.min.js +1 -0
  53. package/lib/resource/position.html +229 -0
  54. package/lib/resource/server-list.html +309 -0
  55. package/lib/resource/traffic.html +207 -0
  56. package/lib/util/baiduTranslate.d.ts +2 -0
  57. package/lib/util/baiduTranslate.js +30 -0
  58. package/lib/util/common.d.ts +1 -0
  59. package/lib/util/common.js +5 -0
  60. package/lib/util/constant.d.ts +19 -0
  61. package/lib/util/constant.js +36 -0
  62. package/package.json +48 -0
  63. package/readme.md +86 -0
package/readme.md ADDED
@@ -0,0 +1,86 @@
1
+ # koishi-plugin-aktmp
2
+
3
+ <div align="center">
4
+
5
+ [![GitHub stars](https://img.shields.io/github/stars/737107334/koishi-plugin-aktmp?style=flat-square&logo=github)](https://github.com/737107334/koishi-plugin-aktmp)
6
+ [![npm version](https://img.shields.io/npm/v/koishi-plugin-aktmp?logo=npm)](https://www.npmjs.com/~qq737107334)
7
+ [![Bilibili](https://img.shields.io/badge/Bilibili-606891061-00A1D6?style=flat-square&logo=bilibili)](https://space.bilibili.com/606891061)
8
+
9
+ **欧洲卡车模拟2 TruckersMP查询插件** — Koishi平台打造欧卡多功能查询插件工具
10
+
11
+ </div>
12
+
13
+ ---
14
+
15
+ ## 功能特性
16
+
17
+ - 🔍 **玩家查询** — 快速查询 TruckersMP 玩家信息
18
+ - 📍 **实时定位** — 查看玩家当前所在位置
19
+ - 🗺️ **足迹追踪** — 展示玩家今日行驶轨迹
20
+ - 🚦 **路况信息** — 查看热门地点实时路况
21
+ - 📊 **里程排行** — 总里程/今日里程排行榜
22
+ - 🛤️ **服务器列表** — 查看 ETS2 服务器状态
23
+ - 🌍 **地图 DLC** — 查看已安装的地图 DLC
24
+
25
+ ---
26
+
27
+ ## 支持的游戏服务器
28
+
29
+ | 服务器 | 简称 |
30
+ |--------|------|
31
+ | Simulation 1 | `s1` / `s1服` |
32
+ | Simulation 2 | `s2` / `s2服` |
33
+ | ProMods | `p` / `p服` |
34
+ | Arcade | `a` / `a服` |
35
+
36
+ ---
37
+
38
+ ## 指令说明
39
+
40
+ | 指令 | 说明 | 示例 |
41
+ |------|------|------|
42
+ | `绑定` | 绑定 TMP ID | `绑定 123` |
43
+ | `解绑` | 解绑 TMP ID | `解绑` |
44
+ | `查询` | 查询玩家信息 | `查询 123` |
45
+ | `定位` | 查询玩家位置 | `定位 123` |
46
+ | `路况` | 查询路况信息 | `路况 s1` |
47
+ | `服务器` | 服务器列表 | `服务器` |
48
+ | `插件版本` | 查看版本 | `插件版本` |
49
+ | `地图dlc` | DLC 列表 | `地图dlc` |
50
+ | `总里程排行` | 总里程排名 | `总里程排行` |
51
+ | `今日里程排行` | 今日里程排名 | `今日里程排行` |
52
+ | `足迹` | ETS2 玩家足迹 | `足迹 123` |
53
+ | `足迹p` | ProMods 玩家足迹 | `足迹p 123` |
54
+
55
+ > 💡 绑定 TMP ID 后,使用其他指令时可省略输入 ID
56
+
57
+ ---
58
+
59
+ ## Koishi安装
60
+
61
+ ```bash
62
+ npm install koishi-plugin-aktmp
63
+ ```
64
+
65
+ 或使用 pnpm/yarn:
66
+
67
+ ```bash
68
+ pnpm add koishi-plugin-aktmp
69
+ # 或
70
+ yarn add koishi-plugin-aktmp
71
+ ```
72
+
73
+ ## 致谢
74
+
75
+ - 数据来源:[TruckersMP](https://truckersmp.com/)
76
+ - 感谢 **备长炭** 提供的数据支持
77
+
78
+ ---
79
+
80
+ ## 交流群
81
+
82
+ 📢 QQ 交流群:**978796651**
83
+
84
+ ## 联系作者
85
+
86
+ QQ:737107334