update README and fix fastapi.py's bug

This commit is contained in:
Cam 2022-08-23 11:57:14 +08:00
parent ea526bc946
commit 80299898b7
2 changed files with 3 additions and 0 deletions

View File

@ -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":"移除直播间弹幕监听成功"}

View File

@ -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": "移除直播间弹幕监听成功"}