test
This commit is contained in:
parent
2ca76c6974
commit
138e04b1e0
6
job.go
6
job.go
@ -1240,8 +1240,14 @@ func jobVaultItemStatus(j Job) {
|
|||||||
out := fmt.Sprintf("<code>%-32s | Depo. | Recv. | Total\n────────────────────────────┼──────┼──────┼──────\n", `User`)
|
out := fmt.Sprintf("<code>%-32s | Depo. | Recv. | Total\n────────────────────────────┼──────┼──────┼──────\n", `User`)
|
||||||
for i, userId := range userList {
|
for i, userId := range userList {
|
||||||
logOnError(err, "jobVaultItemStatus : getObjItem")
|
logOnError(err, "jobVaultItemStatus : getObjItem")
|
||||||
|
chat, err := bot.ChatByID(strconv.FormatInt(userId, 10))
|
||||||
|
logOnError(err, "jobVaultItemStatus : ChatByID")
|
||||||
|
if err == nil {
|
||||||
|
out = fmt.Sprintf("%s%-32d |%6d |%6d |%6d\n", out, chat.Username, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
|
||||||
|
} else {
|
||||||
out = fmt.Sprintf("%s%-32d |%6d |%6d |%6d\n", out, userId, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
|
out = fmt.Sprintf("%s%-32d |%6d |%6d |%6d\n", out, userId, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
|
||||||
}
|
}
|
||||||
|
}
|
||||||
out = fmt.Sprintf("%s</code>", out)
|
out = fmt.Sprintf("%s</code>", out)
|
||||||
|
|
||||||
c := TGCommand{
|
c := TGCommand{
|
||||||
|
Loading…
Reference in New Issue
Block a user