mirror of
https://github.com/yulinfeng000/blive.git
synced 2025-03-25 16:50:53 +08:00
update README and fix fastapi.py's bug
This commit is contained in:
parent
ea526bc946
commit
80299898b7
@ -27,6 +27,7 @@
|
||||
|
||||
```python
|
||||
from blive import BLiver, Events, BLiverCtx
|
||||
from blive.msg import DanMuMsg
|
||||
|
||||
app = BLiver(123)
|
||||
|
||||
@ -148,6 +149,7 @@ async def rm_bliver(roomid:int):
|
||||
room = BLIVER_POOL.get(roomid,None)
|
||||
if room:
|
||||
room.cancel()
|
||||
BLIVER_POOL.pop(roomid)
|
||||
return {"msg":"移除直播间弹幕监听成功"}
|
||||
|
||||
|
||||
|
@ -34,6 +34,7 @@ async def rm_bliver(roomid: int):
|
||||
room = BLIVER_POOL.get(roomid, None)
|
||||
if room:
|
||||
room.cancel()
|
||||
BLIVER_POOL.pop(roomid)
|
||||
return {"msg": "移除直播间弹幕监听成功"}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user