miao-plugin/apps/wiki.js

30 lines
681 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'
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,
desc: '【#资料】 #神里天赋 #夜兰命座'
},
calendar: {
rule: /^(#|喵喵)+(日历|日历列表)$/,
fn: Calendar.render,
desc: '【#日历】 原神活动日历'
},
calendarSr: {
rule: /^#(星铁)+(日历|日历列表)$/,
fn: CalendarSr.render,
desc: '【#星铁日历】 星铁活动日历'
}
2022-09-16 20:37:09 +00:00
})
export default app