NapCatQQ/packages/napcat-onebot/event/notice
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
..
BotOfflineEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11BaseNoticeEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11FriendAddNoticeEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11FriendRecallNoticeEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11GroupAdminNoticeEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11GroupBanEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11GroupCardEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11GroupDecreaseEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11GroupEssenceEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11GroupGrayTipEvent.ts feat: Add OB11GroupGrayTipEvent for detecting forged gray tip attacks (#1492) 2026-01-02 20:55:24 +08:00
OB11GroupIncreaseEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11GroupNameEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11GroupNoticeEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11GroupRecallNoticeEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11GroupTitleEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11GroupUploadNoticeEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11InputStatusEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11MsgEmojiLikeEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11PokeEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
OB11ProfileLikeEvent.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00