koishi-plugin-tmp-bot 1.12.1 → 1.13.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.
@@ -43,8 +43,11 @@ module.exports = async (ctx, cfg, session, tmpId) => {
43
43
  let playerMapInfo = await truckyAppApi.online(ctx.http, tmpId)
44
44
 
45
45
  // 拼接消息模板
46
- let message = `<img src="${playerInfo.data.avatar}"/>`
47
- message += '\n🆔TMP编号: ' + playerInfo.data.id
46
+ let message = ''
47
+ if (cfg.queryShowAvatarEnable) {
48
+ message += `<img src="${playerInfo.data.avatar}"/>\n`
49
+ }
50
+ message += '🆔TMP编号: ' + playerInfo.data.id
48
51
  message += '\n😀玩家名称: ' + playerInfo.data.name
49
52
  message += '\n🎮SteamID: ' + playerInfo.data.steamID64
50
53
  let registerDate = dayjs(playerInfo.data.joinDate + 'Z')
package/lib/index.js CHANGED
@@ -22,6 +22,7 @@ exports.Config = koishi_1.Schema.intersect([
22
22
  baiduTranslateCacheEnable: koishi_1.Schema.boolean().default(false).description('启用百度翻译缓存')
23
23
  }).description('基本配置'),
24
24
  koishi_1.Schema.object({
25
+ queryShowAvatarEnable: koishi_1.Schema.boolean().default(false).description('查询指令展示头像,部分玩家的擦边头像可能导致封号'),
25
26
  tmpTrafficType: koishi_1.Schema.union([
26
27
  koishi_1.Schema.const(1).description('文字'),
27
28
  koishi_1.Schema.const(2).description('热力图')
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-tmp-bot",
3
3
  "description": "欧洲卡车模拟2 TMP查询插件,不会部署的可以直接使用此机器人->QQ:3523283907",
4
- "version": "1.12.1",
4
+ "version": "1.13.0",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "homepage": "https://github.com/79887143/koishi-plugin-tmp-bot",