This commit is contained in:
shoopea 2019-07-09 16:06:02 +08:00
parent 29fe2a1ff8
commit b87ebc9f9f

2
bot.go
View File

@ -172,6 +172,8 @@ func botGetClients(m *tb.Message) {
if v2, ok2 := clientsCW.Load(ka.UserID64); ok2 { if v2, ok2 := clientsCW.Load(ka.UserID64); ok2 {
clt := v2.(*ChatWarsClient) clt := v2.(*ChatWarsClient)
ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d\n", ret, ka.Nickname, clt.UserID64, ka.UserID64) ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d\n", ret, ka.Nickname, clt.UserID64, ka.UserID64)
} else {
ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d\n", ret, ka.Nickname, 0, ka.UserID64)
} }
return true return true
}) })