mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-20 06:20:08 +08:00
15 lines
235 B
Go
15 lines
235 B
Go
package control
|
|
|
|
import (
|
|
zero "github.com/wdvxdr1123/ZeroBot"
|
|
)
|
|
|
|
var m Control
|
|
|
|
func Register(service string, o *Options) *zero.Engine {
|
|
engine := zero.New()
|
|
m = *New(service, o)
|
|
engine.UsePreHandler(m.Handler())
|
|
return engine
|
|
}
|