koishi-plugin-ets2-tools-tmp 2.5.9 → 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 +2 -1
- 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('是否启用百度翻译'),
|