feat(onebot): report forced offline as notice/bot_offline
Register a handler for the StatusService.KickNT push (QQ NT's unified
forced-offline notification — kick / login-elsewhere / risk-control),
decode KickNTResponse and emit bot_offline {user_id, tag, message},
matching NapCat. Command + field layout (f4=tips_title, f3=tips_content)
RE-confirmed against wrapper.linux.node + Lagrange; not yet live-captured.
This commit is contained in:
9 files changed
+120
-1
No files matched your search
@@ -6,6 +6,7 @@ import {
|
||||
convertTempMessage,
|
||||
} from './to-message';
|
||||
import {
|
||||
convertBotOffline,
|
||||
convertFriendAdd,
|
||||
convertFriendInputStatus,
|
||||
convertFriendProfileLike,
|
||||
@@ -85,6 +86,7 @@ const CONVERTERS: ConverterRegistry = {
|
||||
friend_add: convertFriendAdd,
|
||||
friend_input_status: convertFriendInputStatus,
|
||||
friend_profile_like: convertFriendProfileLike,
|
||||
bot_offline: convertBotOffline,
|
||||
group_name_change: convertGroupNameChange,
|
||||
group_title_change: convertGroupTitleChange,
|
||||
group_card_change: convertGroupCardChange,
|
||||
|
||||
Reference in new issue
Block a user