Skip to content

Commit 29916f8

Browse files
committed
update
1 parent d2256cd commit 29916f8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

libs/inital_command.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from . import config,live,ignore
44

55
api={}
6+
67
def get_danmaku_content(event:str):
78
uid=event["data"]["info"][2][0]
89
content=event["data"]["info"][1]
@@ -12,11 +13,7 @@ def get_danmaku_content(event:str):
1213
try:
1314
contents=roomcfg["chat"][f"{uid}"]["command"][content]
1415
except:
15-
try:
16-
contents=roomcfg["chat"]["global"]["command"][content]
17-
logger.info("Reply:"+str(contents))
18-
except KeyError as e:
19-
return ""
16+
contents=""
2017
return contents
2118

2219
def get_danmaku_on_gift(event:str):
@@ -38,7 +35,7 @@ def get_danmaku_on_wuser(event:str):
3835
return
3936
elif str(info['uid']) is live.owner_uid:
4037
return
41-
elif name.startswith("bili_"):
38+
elif name.startswith("bili_") or name.endswith("_bili"):
4239
return
4340
elif info['is_spread']!=0:
4441
return

0 commit comments

Comments
 (0)