This commit is contained in:
kaguramaisakuya 2024-07-05 22:09:53 +08:00
parent 52f182ba23
commit c35dafbe79

View File

@ -3,8 +3,8 @@ import { Cfg, Common, Data } from '#miao'
import { RoleCombat, MysApi, Player } from '#miao.models' import { RoleCombat, 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('roleCombat', false) && !isMatch) {
return false return false
} }
let mys = await MysApi.init(e, 'all') let mys = await MysApi.init(e, 'all')