chore: 杂项修改
This commit is contained in:
parent
978aa6a04e
commit
2fccf24709
@ -140,13 +140,6 @@ func kwReply(msg model.Message) (reply model.Reply) {
|
|||||||
wlist = append(wlist, v.Reply)
|
wlist = append(wlist, v.Reply)
|
||||||
}
|
}
|
||||||
pick := rand.IntN(len(wlist))
|
pick := rand.IntN(len(wlist))
|
||||||
if util.Fail(0.1) {
|
|
||||||
return model.Reply{
|
|
||||||
ReplyMsg: "",
|
|
||||||
ReferOriginMsg: false,
|
|
||||||
FromMsg: msg,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return model.Reply{
|
return model.Reply{
|
||||||
ReplyMsg: wlist[pick],
|
ReplyMsg: wlist[pick],
|
||||||
ReferOriginMsg: false,
|
ReferOriginMsg: false,
|
||||||
|
@ -225,11 +225,11 @@ func RoundCheckNewBond() {
|
|||||||
for !action.ActionManager.Started() {
|
for !action.ActionManager.Started() {
|
||||||
time.Sleep(5 * time.Second)
|
time.Sleep(5 * time.Second)
|
||||||
}
|
}
|
||||||
once := true
|
// once := true
|
||||||
for {
|
for {
|
||||||
if !once {
|
// if !once {
|
||||||
time.Sleep(5 * time.Minute)
|
time.Sleep(5 * time.Minute)
|
||||||
}
|
// }
|
||||||
bonds, err := GetBondsData()
|
bonds, err := GetBondsData()
|
||||||
if bonds == nil || err != nil {
|
if bonds == nil || err != nil {
|
||||||
fmt.Println("Error getting bonds data:", err)
|
fmt.Println("Error getting bonds data:", err)
|
||||||
@ -262,6 +262,6 @@ func RoundCheckNewBond() {
|
|||||||
}
|
}
|
||||||
AddBondData(bond)
|
AddBondData(bond)
|
||||||
}
|
}
|
||||||
once = false
|
// once = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -184,7 +184,7 @@ func RoundCheckSteamPlaying() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, group := range groups {
|
for _, group := range groups {
|
||||||
time.Sleep(3 * time.Second)
|
time.Sleep(15 * time.Second)
|
||||||
if _, ok := playingMap[group]; !ok {
|
if _, ok := playingMap[group]; !ok {
|
||||||
playingMap[group] = map[string]string{}
|
playingMap[group] = map[string]string{}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user