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