Files
2026-05-20 16:13:58 +08:00

34 lines
675 B
Go

package botser
import (
"stat/common/log"
"stat/statg"
)
func StartBot() {
log.Info("StartBot start")
if statg.Bot == nil {
log.Error("statg.Bot is nil!!!")
return
}
Start(statg.Bot)
// 发送服务器启动信息
text := GetServerInformation()
text += GetServerInformationLastTime()
text += "🔔此服务器刚刚重启🔔"
statg.Bot.SendDevelopMessage(text)
// 注册命令
statg.Bot.RegisterCommand(CommandList...)
if statg.RchssendBot != nil && statg.Conf.ServerIndex == statg.ServerIndexBili {
// 注册命令
statg.RchssendBot.RegisterCommand(CommandList0...)
}
log.Info("StartBot end")
//statg.RchssendBot.SendrchssendMessage(text)
}