From b5a0804e2aa6661590bfb7374ef13fbfccb92fdf Mon Sep 17 00:00:00 2001 From: luyanci <2058282593@qq.com> Date: Wed, 22 Jan 2025 21:03:10 +0800 Subject: [PATCH] =?UTF-8?q?pk=E6=A3=80=E6=B5=8B=E5=8A=A0=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=20PK=5FINFO=E4=BC=9A=E9=9A=8F=E7=9D=80?= =?UTF-8?q?=E8=B5=A0=E7=A4=BC=E6=94=B9=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/pk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/pk.py b/plugins/pk.py index f8c6b18..40a282c 100644 --- a/plugins/pk.py +++ b/plugins/pk.py @@ -13,7 +13,7 @@ def events(event:str): global send_msg roomcfg=api.get('roomcfg') send_msg=api.get('send_msg') - if event['type']=='PK_BATTLE_PRE': + if event['type'] in ['PK_BATTLE_PRE','PK_BATTLE_PRE_NEW']: pki=LiveRoom(event['data']['data']['room_id'],credential=c) users=User(event['data']['data']['uid'],credential=c) guards_num=sync(pki.get_dahanghai(1))['info']['num']