2022-09-16 20:37:09 +00:00
|
|
|
import help from './help.js'
|
|
|
|
import character from './character.js'
|
|
|
|
import admin from './admin.js'
|
|
|
|
import stat from './stat.js'
|
|
|
|
import wiki from './wiki.js'
|
2022-07-23 20:32:10 +00:00
|
|
|
|
2022-09-17 09:48:24 +00:00
|
|
|
export const characterApp = character.v2App()
|
|
|
|
export const adminApp = admin.v2App()
|
|
|
|
export const helpApp = help.v2App()
|
|
|
|
export const statApp = stat.v2App()
|
|
|
|
export const wikiApp = wiki.v2App()
|
2022-07-23 20:32:10 +00:00
|
|
|
|
2022-09-16 21:45:10 +00:00
|
|
|
let apps = { character, admin, help, stat, wiki }
|
|
|
|
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 }
|