diff --git a/blive/core.py b/blive/core.py index 8afc566..6eb2afe 100644 --- a/blive/core.py +++ b/blive/core.py @@ -206,6 +206,9 @@ class BWS_MsgPackage: return packages +packman = BWS_MsgPackage() + + class Events(str, enum.Enum): PREPARING = "PREPARING" # 下播【结束语】 ROOM_CHANGE = "ROOM_CHANGE" # 房间信息改变 diff --git a/blive/framework.py b/blive/framework.py index d248d02..05993bf 100644 --- a/blive/framework.py +++ b/blive/framework.py @@ -11,7 +11,7 @@ from apscheduler.schedulers.asyncio import AsyncIOScheduler import loguru from apscheduler.util import _Undefined from .core import ( - BWS_MsgPackage, + packman, Events, Operation, PackageHeader, @@ -24,8 +24,6 @@ from .core import ( undefined = _Undefined() -packman = BWS_MsgPackage() - class BLiverCtx(object): def __init__(self, bliver, msg) -> None: