NapCatQQ/packages/napcat-onebot/event
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
..
message refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
meta refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
notice feat: Add OB11GroupGrayTipEvent for detecting forged gray tip attacks (#1492) 2026-01-02 20:55:24 +08:00
request refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OneBotEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00