File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 3
3
from . import config ,live ,ignore
4
4
5
5
api = {}
6
+
6
7
def get_danmaku_content (event :str ):
7
8
uid = event ["data" ]["info" ][2 ][0 ]
8
9
content = event ["data" ]["info" ][1 ]
@@ -12,11 +13,7 @@ def get_danmaku_content(event:str):
12
13
try :
13
14
contents = roomcfg ["chat" ][f"{ uid } " ]["command" ][content ]
14
15
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 = ""
20
17
return contents
21
18
22
19
def get_danmaku_on_gift (event :str ):
@@ -38,7 +35,7 @@ def get_danmaku_on_wuser(event:str):
38
35
return
39
36
elif str (info ['uid' ]) is live .owner_uid :
40
37
return
41
- elif name .startswith ("bili_" ):
38
+ elif name .startswith ("bili_" ) or name . endswith ( "_bili" ) :
42
39
return
43
40
elif info ['is_spread' ]!= 0 :
44
41
return
You can’t perform that action at this time.
0 commit comments