test version for clients
This commit is contained in:
parent
4bbcfacedc
commit
5f6d58255b
4
bot.go
4
bot.go
@ -298,7 +298,7 @@ func botGetClients(m *tb.Message) {
|
|||||||
clt.Mux.Unlock()
|
clt.Mux.Unlock()
|
||||||
muxClients.RLock()
|
muxClients.RLock()
|
||||||
ret := fmt.Sprintf("<code>Version %s (%s)\n", githash, buildstamp)
|
ret := fmt.Sprintf("<code>Version %s (%s)\n", githash, buildstamp)
|
||||||
for id, c := range clients {
|
for _, c := range clients {
|
||||||
chat, err := bot.ChatByID(strconv.FormatInt(c.CWUserID64, 10))
|
chat, err := bot.ChatByID(strconv.FormatInt(c.CWUserID64, 10))
|
||||||
logOnError(err, "botGetClients : ChatByID")
|
logOnError(err, "botGetClients : ChatByID")
|
||||||
var status string
|
var status string
|
||||||
@ -307,7 +307,7 @@ func botGetClients(m *tb.Message) {
|
|||||||
} else {
|
} else {
|
||||||
status = `offline`
|
status = `offline`
|
||||||
}
|
}
|
||||||
ret = fmt.Sprintf("%s%s (%s) | @%s (online)\n", ret, c.Login, c.Build, chat.Username)
|
ret = fmt.Sprintf("%s%s (%s) | @%s (%s)\n", ret, c.Login, c.Build, chat.Username, status)
|
||||||
}
|
}
|
||||||
ret = fmt.Sprintf("%s</code>", ret)
|
ret = fmt.Sprintf("%s</code>", ret)
|
||||||
muxClients.RUnlock()
|
muxClients.RUnlock()
|
||||||
|
Loading…
Reference in New Issue
Block a user