comestic fix

This commit is contained in:
shoopea
2021-11-26 08:35:46 +08:00
parent d09710eb3d
commit 9614fccb68
2 changed files with 6 additions and 6 deletions

4
bot.go
View File

@@ -207,7 +207,7 @@ func botPlayers(m *tb.Message) {
if co, ok := srv.Status.Companies[cc.CompanyID]; ok {
online = online + fmt.Sprintf(" - %s (%s) : %s", cc.Username, cc.TimeLeft, co.Name) + "\r\n"
} else {
online = online + fmt.Sprintf(" - %s (none) : %s", cc.Username, cc.TimeLeft) + "\r\n"
online = online + fmt.Sprintf(" - %s (%s) : none", cc.Username, cc.TimeLeft) + "\r\n"
}
}
}
@@ -216,7 +216,7 @@ func botPlayers(m *tb.Message) {
if co, ok := srv.Status.Companies[cc.CompanyID]; ok && !cc.Online {
offline = offline + fmt.Sprintf(" - %s (%s) : %s", cc.Username, cc.TimeLeft, co.Name) + "\r\n"
} else {
offline = offline + fmt.Sprintf(" - %s (none) : %s", cc.Username, cc.TimeLeft) + "\r\n"
offline = offline + fmt.Sprintf(" - %s (%s) : none", cc.Username, cc.TimeLeft) + "\r\n"
}
}