style(qq_onebot): rename all NapCat related to OneBot
Build / ubuntu-latest (push) Failing after 3m6s
Build / windows-latest (push) Failing after 11m26s

This commit is contained in:
NanamiAdmin committed 2026-10-10 11:34:22 +08:00
1 parent 72d0d587cb
commit 40e3663dc8
8 files changed
+100 -103

No files matched your search

+4 -4
View File
@@ -69,11 +69,11 @@ func LoadGlobalConfig(configPath string) (*Config, error) {
if cfg.ControllerMethod.QQ.ListenMethod == "" {
cfg.ControllerMethod.QQ.ListenMethod = "global"
}
if cfg.ControllerMethod.QQ.NapcatAddr == "" {
cfg.ControllerMethod.QQ.NapcatAddr = "127.0.0.1"
if cfg.ControllerMethod.QQ.OneBotAddr == "" {
cfg.ControllerMethod.QQ.OneBotAddr = "127.0.0.1"
}
if cfg.ControllerMethod.QQ.NapcatPort == "" {
cfg.ControllerMethod.QQ.NapcatPort = "3000"
if cfg.ControllerMethod.QQ.OneBotPort == "" {
cfg.ControllerMethod.QQ.OneBotPort = "3000"
}
// Apply defaults for Telegram controller.