miao-plugin/apps/gacha.js

27 lines
734 B
JavaScript
Raw Normal View History

import Gacha from './gacha/Gacha.js'
2023-03-07 17:52:11 +00:00
import { App, Cfg } from '#miao'
let app = App.init({
id: 'gacha',
name: '抽卡统计'
})
app.reg({
detail: {
name: '抽卡记录',
fn: Gacha.detail,
rule: /^#*喵喵(抽卡|抽奖|角色|武器|常驻|up)+池?(记录|祈愿|分析)$/,
yzRule: /^#*(抽卡|抽奖|角色|武器|常驻|up)+池?(记录|祈愿|分析)$/,
2023-02-28 17:59:13 +00:00
yzCheck: () => Cfg.get('gachaStat', false)
},
stat: {
name: '抽卡统计',
fn: Gacha.stat,
rule: /^#*喵喵(全部|抽卡|抽奖|角色|武器|常驻|up|版本)+池?统计$/,
yzRule: /^#*(全部|抽卡|抽奖|角色|武器|常驻|up|版本)+池?统计$/,
2023-02-28 17:59:13 +00:00
yzCheck: () => Cfg.get('gachaStat', false)
}
})
export default app