mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 12:51:30 +00:00
27 lines
751 B
JavaScript
27 lines
751 B
JavaScript
import { App, Cfg } from '../components/index.js'
|
|
import Gacha from './gacha/Gacha.js'
|
|
|
|
let app = App.init({
|
|
id: 'gacha',
|
|
name: '抽卡统计'
|
|
})
|
|
app.reg({
|
|
detail: {
|
|
name: '抽卡记录',
|
|
fn: Gacha.detail,
|
|
rule: /^#*喵喵(抽卡|抽奖|角色|武器|常驻|up)+池?(记录|祈愿|分析)$/,
|
|
yzRule: /^#*(抽卡|抽奖|角色|武器|常驻|up)+池?(记录|祈愿|分析)$/,
|
|
yzCheck: () => Cfg.get('gachaStat', false)
|
|
},
|
|
stat: {
|
|
name: '抽卡统计',
|
|
fn: Gacha.stat,
|
|
rule: /^#*喵喵(全部|抽卡|抽奖|角色|武器|常驻|up|版本)+池?统计$/,
|
|
yzRule: /^#*(全部|抽卡|抽奖|角色|武器|常驻|up|版本)+池?统计$/,
|
|
yzCheck: () => Cfg.get('gachaStat', false)
|
|
|
|
}
|
|
})
|
|
|
|
export default app
|