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"
}
}

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT.
package main
var githash = "07c2ea7"
var buildstamp = "2021-11-26_00:28:51"
var commits = "206"
var version = "07c2ea7-b206 - 2021-11-26_00:28:51"
var githash = "d09710e"
var buildstamp = "2021-11-26_00:35:33"
var commits = "207"
var version = "d09710e-b207 - 2021-11-26_00:35:33"