Skip to content

Conversation

@Wuxie233
Copy link
Contributor

@Wuxie233 Wuxie233 commented Sep 8, 2025

在群里输入 /查询背包 玩家名字 即可查询对应玩家背包内容
适用于服主懒得上线就能查询到玩家背包里东西有什么,也可以通过此方式间接判断玩家有没有通过游戏漏洞非法获得大量物品 支持名字自动匹配
支持本地化翻译(翻译失败则回退原文)
支持输出物品附魔属性等

在群里输入 /查询背包 玩家名字 即可查询对应玩家背包内容
适用于服主懒得上线就能查询到玩家背包里东西有什么,也可以通过此方式间接判断玩家有没有通过游戏漏洞非法获得大量物品
支持名字自动匹配
支持本地化翻译(翻译失败则回退原文)
支持输出物品附魔属性等
@deepsource-io
Copy link
Contributor

deepsource-io bot commented Sep 8, 2025

Here's the code health analysis summary for commits dc2eff6..49d688a. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython❌ Failure
❗ 8 occurences introduced
🎯 2 occurences resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use sub-sub function here is bad, and also what s is?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use sub function here is bad, should change.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sub-sub function here is bad, should change.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This translate is not reliable, you better gen a map that can find chinese name by item command id.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe here no need or []

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, you better use if len(lines) == 0 instead of if not lines.
so that's why i dislike python, how can a list do a job that only bools can do?

also, replace to 该玩家背包中没有物品

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
lines.append(f"- [{idx}] {name} x {cnt} (数据:{aux}; 附魔:{ench_text})")
lines.append(f"\t- [{idx}] {name} x {cnt} (数据: {aux}; 附魔: {ench_text})")

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.sendmsg(self.linked_group, f"玩家名字:{target.name}\n背包物品:\n{text}")
self.sendmsg(self.linked_group, f"玩家 {target.name} 的背包信息如下: \n{text}")

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you remove do_remove_cq_code=True?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"获取对方背包内物品,并输出在群里",
"获取对方背包内物品, 并输出在群里",

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if not matches:
if len(matches) == 0:

@Happy2018new
Copy link
Member

I will work on this issue after I finish my own things.
Maybe in the next year, hope I can quickly finish all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants