feat 机器人

This commit is contained in:
2025-12-17 09:56:01 +08:00
parent 0274262591
commit d602a16b15
14 changed files with 540 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package ws
import (
"common/utils"
"robot/config"
"strconv"
)
type Manager struct {
addr string
}
func NewManager(addr string) *Manager {
c := &Manager{
addr: addr,
}
return c
}
func (c *Manager) Start() {
cfg := config.Get().Client
for i := 0; i < 300; i++ {
client := NewClient(c.addr, strconv.Itoa(utils.RandInt(int(cfg.UID[0]), int(cfg.UID[1]))))
client.Start()
}
}