NapCatQQ/packages/napcat-onebot
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
..
action Refactor and standardize share and message history APIs 2025-11-22 13:14:46 +08:00
api feat: Add OB11GroupGrayTipEvent for detecting forged gray tip attacks (#1492) 2026-01-02 20:55:24 +08:00
config feat: 大规模去耦合 2025-11-15 13:36:33 +08:00
event feat: Add OB11GroupGrayTipEvent for detecting forged gray tip attacks (#1492) 2026-01-02 20:55:24 +08:00
helper refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
network feat: 大规模去耦合 2025-11-15 13:36:33 +08:00
types refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
index.ts Add ESLint config and update code style 2025-11-15 16:21:59 +08:00
package.json feat: 所有的类型检查 2025-11-15 12:57:19 +08:00
tsconfig.json Refactor TypeScript configs to use shared base 2025-11-15 14:00:27 +08:00