mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
parent
adf111015c
commit
cb8019e04a
21
main.js
21
main.js
@ -1,21 +0,0 @@
|
||||
import { createApp } from 'alemonjs'
|
||||
import { apps } from './index.js'
|
||||
/**
|
||||
* *******
|
||||
* 创建应用 createApp
|
||||
* 重定义 reSetEvent
|
||||
* 切割消息 replace
|
||||
* 使用 use
|
||||
* 挂载 mount
|
||||
* *******
|
||||
* global.YUNZAI_GENSHIN 原神星铁重定义方法 | 方便A崽统一修改
|
||||
* global.YUNZAI_EVENT 非原神星铁相关的重定义方法 | 方便A崽统一修改
|
||||
* global.YUNZAI_REG 星铁消息的正则变量
|
||||
* *******
|
||||
*/
|
||||
createApp(import.meta.url)
|
||||
.reSetEvent(global.YUNZAI_GENSHIN)
|
||||
.replace(global.YUNZAI_REG,'#星铁')
|
||||
.replace(/^(\/|#)/,'#')
|
||||
.use(apps)
|
||||
.mount()
|
Loading…
Reference in New Issue
Block a user