NapCatQQ/packages/napcat-onebot/api
Makoto 2d3f4e696b
Some checks are pending
Build NapCat Artifacts / Build-Framework (push) Waiting to run
Build NapCat Artifacts / Build-Shell (push) Waiting to run
feat: Add OB11GroupGrayTipEvent for detecting forged gray tip attacks (#1492)
* feat: Add OB11GroupGrayTipEvent for detecting forged gray tip attacks

- Add new OB11GroupGrayTipEvent class to report unknown gray tip messages
- Modify parseOtherJsonEvent to detect forged gray tips by checking senderUin
- Real system gray tips have senderUin='0', forged ones expose attacker's QQ
- Include message_id in event for downstream recall capability
- Add try/catch for JSON.parse to handle malformed content
- Use Number() for consistent type conversion

* fix: simplify logWarn to match upstream style

* fix: remove extra closing brace that broke class structure

* fix: add validation for malformed title gray tip events
2026-01-02 20:55:24 +08:00
..
file.ts Add ESLint config and update code style 2025-11-15 16:21:59 +08:00
friend.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
group.ts feat: Add OB11GroupGrayTipEvent for detecting forged gray tip attacks (#1492) 2026-01-02 20:55:24 +08:00
index.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
msg.ts fix: close #1463 2025-12-27 00:20:59 +08:00
quick-action.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
user.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00