style(qq_onebot): rename all NapCat related to OneBot
This commit is contained in:
1 parent
72d0d587cb
commit
40e3663dc8
8 files changed
+100
-103
No files matched your search
+4
-4
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user