miao-plugin/apps/wiki.js

40 lines
837 B
JavaScript
Raw Normal View History

2023-03-27 20:02:49 +00:00
import { App } from '#miao'
2022-10-06 22:20:46 +00:00
import Calendar from './wiki/Calendar.js'
import TodayMaterial from './wiki/TodayMaterial.js'
2022-09-07 19:48:03 +00:00
import CharWiki from './wiki/CharWiki.js'
import CalendarSr from './wiki/CalendarSr.js'
2022-07-23 20:32:10 +00:00
2022-09-16 20:37:09 +00:00
let app = App.init({
id: 'wiki',
2022-09-16 22:01:31 +00:00
name: '角色资料'
2022-09-16 20:37:09 +00:00
})
app.reg({
// #神里天赋 #夜兰命座
wiki: {
rule: '^#喵喵WIKI$',
check: CharWiki.check,
fn: CharWiki.wiki
},
// #日历
calendar: {
rule: /^(#|喵喵)+(日历|日历列表)$/,
fn: Calendar.render
},
// *日历
calendarSr: {
rule: /^#(星铁)+(日历|日历列表)$/,
fn: CalendarSr.render
},
// #今日素材
today: {
2024-04-03 16:29:56 +00:00
rule: /^#(今日|今天|每日|我的|明天|明日|周([1-7]|一|二|三|四|五|六|日))*(素材|材料|天赋)[ |0-9]*$/,
fn: TodayMaterial.render
}
2022-09-16 20:37:09 +00:00
})
export default app