update
This commit is contained in:
parent
aac2a274b9
commit
a8844b4f71
8
bot.go
8
bot.go
@ -146,10 +146,10 @@ func botClients(m *tb.Message) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func botPlayers(m *tb.Message) {
|
func botPlayers(m *tb.Message) {
|
||||||
t := time.Now().Sub(cfg.Game.StartDate)
|
d1 := time.Now().Sub(cfg.Game.StartDate)
|
||||||
days := int(time.Duration(t.Hours()) / 24)
|
days := int(time.Duration(d1.Hours()) / 24)
|
||||||
t = time.Duration(days+1)*(time.Hour)*24 - t
|
d2 := time.Duration(days+1)*(time.Hour)*24 - d1
|
||||||
str := fmt.Sprintf("Update in %s\r\n", t)
|
str := fmt.Sprintf("Update in %s\r\n", d2)
|
||||||
|
|
||||||
online := ""
|
online := ""
|
||||||
for _, cc := range cfg.Clients {
|
for _, cc := range cfg.Clients {
|
||||||
|
Loading…
Reference in New Issue
Block a user