✏️ 完成插件卸载

This commit is contained in:
fumiama
2021-10-13 18:39:54 +08:00
parent a0b9623a9f
commit 539b050b97
12 changed files with 325 additions and 175 deletions

View File

@@ -0,0 +1,19 @@
package main
import (
zero "github.com/wdvxdr1123/ZeroBot"
"github.com/wdvxdr1123/ZeroBot/message"
"github.com/FloatTech/ZeroBot-Plugin/control"
)
func init() {
en := control.Register("demo", &control.Options{
DisableOnDefault: false,
Help: "help from demo",
})
en.OnCommand("demo", zero.AdminPermission).SetBlock(true).SecondPriority().
Handle(func(ctx *zero.Ctx) {
ctx.SendChain(message.Text("回复"))
})
}