miao-plugin/apps/index.js

28 lines
812 B
JavaScript
Raw Normal View History

2022-09-16 20:37:09 +00:00
import character from './character.js'
import profile from './profile.js'
2022-09-16 20:37:09 +00:00
import stat from './stat.js'
import wiki from './wiki.js'
2022-09-17 20:40:15 +00:00
import poke from './poke.js'
import help from './help.js'
import admin from './admin.js'
import gacha from './gacha.js'
2022-07-23 20:32:10 +00:00
2022-09-17 09:48:24 +00:00
export const characterApp = character.v2App()
2022-09-19 19:16:00 +00:00
export const profileApp = profile.v2App()
2022-09-17 09:48:24 +00:00
export const adminApp = admin.v2App()
export const helpApp = help.v2App()
export const statApp = stat.v2App()
export const wikiApp = wiki.v2App()
2022-09-17 20:40:15 +00:00
export const pokeApp = poke.v2App()
export const gachaApp = gacha.v2App()
2022-07-23 20:32:10 +00:00
let apps = { character, poke, profile, stat, wiki, gacha, admin, help }
2022-09-16 21:45:10 +00:00
let rule = {} // v2
let rules = {} // v3
for (let key in apps) {
2022-09-17 09:48:24 +00:00
rule[`${key}App`] = apps[key].v2Rule()
rules[`${key}`] = apps[key].v3App()
2022-07-23 20:32:10 +00:00
}
2022-09-16 21:45:10 +00:00
export { rule, rules as apps }