We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 904bc0f commit 2825e82Copy full SHA for 2825e82
service/bot/remote.go
@@ -26,10 +26,11 @@ func ConnectUniversal(cli *client.QQClient) {
26
"X-Self-ID": []string{strconv.FormatInt(cli.Uin, 10)},
27
"User-Agent": []string{"CQHttp/4.15.0"},
28
}
29
- for _, serverGroup := range config.Conf.ServerGroups {
30
- if serverGroup.Disabled {
+ for _, group := range config.Conf.ServerGroups {
+ if group.Disabled {
31
continue
32
33
+ serverGroup := *group
34
util.SafeGo(func() {
35
for {
36
serverUrl := serverGroup.Urls[rand.Intn(len(serverGroup.Urls))]
0 commit comments