设置幻想真境剧诗关闭 时使用yunzai功能

This commit is contained in:
bujidao 2024-07-04 23:03:24 +08:00 committed by 时雨◎星空
parent 4fcdfebfde
commit a5331703f6

View File

@ -4,7 +4,7 @@ import { Cfg, Common, Data } from '#miao'
import { Role, Character, MysApi, Player } from '#miao.models' import { Role, Character, MysApi, Player } from '#miao.models'
export async function RoleCombatSummary (e) { export async function RoleCombatSummary (e) {
let isMatch = /^#(喵喵|上传)*(幻想|剧诗|幻想真境剧诗)(数据)?$/.test(e.original_msg || e.msg || '') let isMatch = /^#(喵喵|上传)(幻想|剧诗|幻想真境剧诗)(数据)?$/.test(e.original_msg || e.msg || '')
if (!Cfg.get('uploadRoleCombat', false) && !isMatch) { if (!Cfg.get('uploadRoleCombat', false) && !isMatch) {
return false return false
} }