mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-30 18:59:14 +00:00
26 lines
825 B
JavaScript
26 lines
825 B
JavaScript
import Gacha from './gacha/Gacha.js'
|
|
import { App, Cfg } from '#miao'
|
|
|
|
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
|