21 lines
384 B
Go
21 lines
384 B
Go
package health
|
|
|
|
import (
|
|
"git.lxtend.com/qqbot/constants"
|
|
"git.lxtend.com/qqbot/handler"
|
|
"git.lxtend.com/qqbot/model"
|
|
)
|
|
|
|
func init() {
|
|
handler.RegisterHandler("health", health, constants.LEVEL_USER)
|
|
}
|
|
|
|
func health(msg model.Message) (reply *model.Reply) {
|
|
heathResult := ""
|
|
return &model.Reply{
|
|
ReplyMsg: heathResult,
|
|
ReferOriginMsg: true,
|
|
FromMsg: msg,
|
|
}
|
|
}
|