Files
yenai-plugin/apps/update.js
2024-04-04 13:10:08 +08:00

24 lines
519 B
JavaScript

import { update as Update } from "../../other/update.js"
export class YenaiUpdate extends plugin {
constructor () {
super({
name: "椰奶更新插件",
event: "message",
priority: 1000,
rule: [
{
reg: "^#*椰奶(插件)?(强制)?更新$",
fnc: "update"
}
]
})
}
async update (e = this.e) {
e.msg = `#${e.msg.includes("强制") ? "强制" : ""}更新yenai-plugin`
const up = new Update(e)
up.e = e
return up.update()
}
}