File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1293,25 +1293,16 @@ def comment_handle(self, data):
12931293 if self .integral_handle ("crud" , data ):
12941294 return
12951295
1296+ # 输出当前用户发送的弹幕消息
1297+ logging .info (f"[{ user_name } ]: { content } " )
1298+
12961299 """
12971300 用户名也得过滤一下,防止炸弹人
12981301 """
12991302 # 用户名以及弹幕违禁判断
13001303 if self .prohibitions_handle (user_name ) or self .prohibitions_handle (content ):
13011304 return
1302-
1303- # 1、本地问答库 处理
1304- if self .local_qa_handle (data ):
1305- return
1306-
1307- # 2、点歌模式 触发后不执行后面的其他功能
1308- if self .choose_song_handle (data ):
1309- return
1310-
1311- # 3、画图模式 触发后不执行后面的其他功能
1312- if self .sd_handle (data ):
1313- return
1314-
1305+
13151306 # 弹幕格式检查和特殊字符替换
13161307 content = self .comment_check_and_replace (content )
13171308 if content is None :
@@ -1322,9 +1313,6 @@ def comment_handle(self, data):
13221313 logging .debug (f"用户:{ user_name } ],发送纯符号的弹幕,已过滤" )
13231314 return
13241315
1325- # 输出当前用户发送的弹幕消息
1326- logging .info (f"[{ user_name } ]: { content } " )
1327-
13281316 try :
13291317 # 念弹幕
13301318 if My_handle .config .get ("read_comment" , "enable" ):
@@ -1351,6 +1339,17 @@ def comment_handle(self, data):
13511339 except Exception as e :
13521340 logging .error (traceback .format_exc ())
13531341
1342+ # 1、本地问答库 处理
1343+ if self .local_qa_handle (data ):
1344+ return
1345+
1346+ # 2、点歌模式 触发后不执行后面的其他功能
1347+ if self .choose_song_handle (data ):
1348+ return
1349+
1350+ # 3、画图模式 触发后不执行后面的其他功能
1351+ if self .sd_handle (data ):
1352+ return
13541353
13551354 data_json = {
13561355 "user_name" : user_name ,
You can’t perform that action at this time.
0 commit comments