mirror of
https://github.com/yulinfeng000/blive.git
synced 2026-08-19 08:43:28 +08:00
update README and fix fastapi.py's bug
This commit is contained in:
@@ -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": "移除直播间弹幕监听成功"}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user