new messages for shops

This commit is contained in:
shoopea 2020-02-13 16:56:03 +08:00
parent f3d0e089be
commit 2c30cd80e4

3
job.go
View File

@ -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) 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 { 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()) out = fmt.Sprintf("%s %s\n", out, d.String())
} else { } else {
out = fmt.Sprintf("%s\n", out) out = fmt.Sprintf("%s\n", out)