mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
Update register.go
This commit is contained in:
parent
ebd5555955
commit
1036733fcb
@ -4,6 +4,7 @@ import (
|
||||
zero "github.com/wdvxdr1123/ZeroBot"
|
||||
)
|
||||
|
||||
// Register 注册插件控制器
|
||||
func Register(service string, o *Options) *zero.Engine {
|
||||
engine := zero.New()
|
||||
engine.UsePreHandler(new(service, o).Handler())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user