style(qq_onebot): rename all NapCat related to OneBot
This commit is contained in:
1 parent
72d0d587cb
commit
1b11be2427
11 files changed
+122
-125
No files matched your search
+7
-7
@@ -65,15 +65,15 @@ func LoadGlobalConfig(configPath string) (*Config, error) {
|
||||
cfg.System.ListenPort = "8080"
|
||||
}
|
||||
|
||||
// Apply defaults for QQ controller.
|
||||
if cfg.ControllerMethod.QQ.ListenMethod == "" {
|
||||
cfg.ControllerMethod.QQ.ListenMethod = "global"
|
||||
// Apply defaults for QQ_OneBot controller.
|
||||
if cfg.ControllerMethod.QQ_OneBot.ListenMethod == "" {
|
||||
cfg.ControllerMethod.QQ_OneBot.ListenMethod = "global"
|
||||
}
|
||||
if cfg.ControllerMethod.QQ.NapcatAddr == "" {
|
||||
cfg.ControllerMethod.QQ.NapcatAddr = "127.0.0.1"
|
||||
if cfg.ControllerMethod.QQ_OneBot.OneBotAddr == "" {
|
||||
cfg.ControllerMethod.QQ_OneBot.OneBotAddr = "127.0.0.1"
|
||||
}
|
||||
if cfg.ControllerMethod.QQ.NapcatPort == "" {
|
||||
cfg.ControllerMethod.QQ.NapcatPort = "3000"
|
||||
if cfg.ControllerMethod.QQ_OneBot.OneBotPort == "" {
|
||||
cfg.ControllerMethod.QQ_OneBot.OneBotPort = "3000"
|
||||
}
|
||||
|
||||
// Apply defaults for Telegram controller.
|
||||
|
||||
Reference in new issue
Block a user