Skip to content

Commit

Permalink
b站弹幕监听丢失弹幕问题(请升级监听库)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikaros-521 committed Jul 17, 2023
1 parent 895b7fc commit d7c0eea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions bilibili.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ async def _(event):
content = event["data"]["info"][1] # 获取弹幕内容
user_name = event["data"]["info"][2][1] # 获取发送弹幕的用户昵称

logging.info(f"[{user_name}]: {content}")

my_handle.commit_handle(user_name, content)

@room.on('COMBO_SEND')
Expand Down
2 changes: 1 addition & 1 deletion requirements_bilibili.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ sentence_transformers
pydub
send2trash
bilibili-api==9.1.0
bilibili-api-python
bilibili-api-python==15.5.1b0
langchain==0.0.142
2 changes: 1 addition & 1 deletion requirements_common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ attrs==23.1.0
backcall==0.2.0
beautifulsoup4==4.11.2
bilibili-api==9.1.0
bilibili-api-python==15.5.1
bilibili-api-python==15.5.1b0
blis==0.7.9
Brotli==1.0.9
cachetools==5.3.0
Expand Down
2 changes: 0 additions & 2 deletions utils/my_handle.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,6 @@ def commit_handle(self, user_name, content):
Returns:
_type_: 寂寞
"""
logging.debug(f"[{user_name}]: {content}")

# 1、匹配本地问答库 触发后不执行后面的其他功能
if self.local_qa == True:
# 输出当前用户发送的弹幕消息
Expand Down

0 comments on commit d7c0eea

Please sign in to comment.