File tree Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -1293,25 +1293,16 @@ def comment_handle(self, data):
1293
1293
if self .integral_handle ("crud" , data ):
1294
1294
return
1295
1295
1296
+ # 输出当前用户发送的弹幕消息
1297
+ logging .info (f"[{ user_name } ]: { content } " )
1298
+
1296
1299
"""
1297
1300
用户名也得过滤一下,防止炸弹人
1298
1301
"""
1299
1302
# 用户名以及弹幕违禁判断
1300
1303
if self .prohibitions_handle (user_name ) or self .prohibitions_handle (content ):
1301
1304
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
+
1315
1306
# 弹幕格式检查和特殊字符替换
1316
1307
content = self .comment_check_and_replace (content )
1317
1308
if content is None :
@@ -1322,9 +1313,6 @@ def comment_handle(self, data):
1322
1313
logging .debug (f"用户:{ user_name } ],发送纯符号的弹幕,已过滤" )
1323
1314
return
1324
1315
1325
- # 输出当前用户发送的弹幕消息
1326
- logging .info (f"[{ user_name } ]: { content } " )
1327
-
1328
1316
try :
1329
1317
# 念弹幕
1330
1318
if My_handle .config .get ("read_comment" , "enable" ):
@@ -1351,6 +1339,17 @@ def comment_handle(self, data):
1351
1339
except Exception as e :
1352
1340
logging .error (traceback .format_exc ())
1353
1341
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
1354
1353
1355
1354
data_json = {
1356
1355
"user_name" : user_name ,
You can’t perform that action at this time.
0 commit comments