This commit is contained in:
shoopea 2021-11-08 22:24:34 +08:00
parent aac2a274b9
commit a8844b4f71

8
bot.go
View File

@ -146,10 +146,10 @@ func botClients(m *tb.Message) {
}
func botPlayers(m *tb.Message) {
t := time.Now().Sub(cfg.Game.StartDate)
days := int(time.Duration(t.Hours()) / 24)
t = time.Duration(days+1)*(time.Hour)*24 - t
str := fmt.Sprintf("Update in %s\r\n", t)
d1 := time.Now().Sub(cfg.Game.StartDate)
days := int(time.Duration(d1.Hours()) / 24)
d2 := time.Duration(days+1)*(time.Hour)*24 - d1
str := fmt.Sprintf("Update in %s\r\n", d2)
online := ""
for _, cc := range cfg.Clients {