Initial commit

This commit is contained in:
2026-05-20 16:13:58 +08:00
commit ceffbe382e
500 changed files with 157469 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
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)
}