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