From 100ed8fdf970bb105a69df52d63ffd49a64b7cf6 Mon Sep 17 00:00:00 2001 From: John Smith Date: Sun, 19 Jan 2025 16:25:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=BC=B9=E5=B9=95=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blivedm/models/open_live.py | 12 ++++++++++++ blivedm/models/web.py | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/blivedm/models/open_live.py b/blivedm/models/open_live.py index 4566b9d..637e5c4 100644 --- a/blivedm/models/open_live.py +++ b/blivedm/models/open_live.py @@ -47,6 +47,14 @@ class DanmakuMessage: """表情包图片地址""" dm_type: int = 0 """弹幕类型 0:普通弹幕 1:表情包弹幕""" + glory_level: int = 0 + """直播荣耀等级""" + reply_open_id: str = '' + """被at用户唯一标识""" + reply_uname: str = '' + """被at的用户昵称""" + is_admin: int = 0 + """发送弹幕的用户是否是房管,取值范围0或1,取值为1时是房管""" @classmethod def from_command(cls, data: dict): @@ -64,6 +72,10 @@ class DanmakuMessage: fans_medal_level=data['fans_medal_level'], emoji_img_url=data['emoji_img_url'], dm_type=data['dm_type'], + glory_level=data['glory_level'], + reply_open_id=data['reply_open_id'], + reply_uname=data['reply_uname'], + is_admin=data['is_admin'], ) diff --git a/blivedm/models/web.py b/blivedm/models/web.py index f103992..5b64116 100644 --- a/blivedm/models/web.py +++ b/blivedm/models/web.py @@ -110,6 +110,9 @@ class DanmakuMessage: privilege_type: int = 0 """舰队类型,0非舰队,1总督,2提督,3舰长""" + wealth_level: int = 0 + """荣耀等级""" + @classmethod def from_command(cls, info: list): mode_info = info[0][15] @@ -181,6 +184,8 @@ class DanmakuMessage: title=title, privilege_type=info[7], + + wealth_level=info[16][0], ) @property