new messages for shops
This commit is contained in:
parent
f3d0e089be
commit
2c30cd80e4
3
job.go
3
job.go
@ -2272,7 +2272,8 @@ func jobShops(j Job) {
|
||||
out = fmt.Sprintf("%s <a href=\"https://t.me/share/url?url=/ws_%s\">%s</a>", out, cwm.Link, cwm.User)
|
||||
|
||||
if cwm.Mana < cwm.ManaTotal {
|
||||
d := time.Duration((cwm.ManaTotal-cwm.Mana)/((cwm.ManaTotal/250)+1)) * time.Minute
|
||||
t := (cwm.ManaTotal - cwm.Mana) / ((cwm.ManaTotal / 250) + 1)
|
||||
d := time.Duration(t) * time.Minute
|
||||
out = fmt.Sprintf("%s %s\n", out, d.String())
|
||||
} else {
|
||||
out = fmt.Sprintf("%s\n", out)
|
||||
|
Loading…
Reference in New Issue
Block a user