This commit is contained in:
shoopea 2020-06-17 13:14:40 +02:00
parent ebde59079c
commit 4288d568ca

4
bot.go
View File

@ -956,7 +956,7 @@ func botUserConfig(m *ChatWarsMessage) {
for _, v := range clt.Config.AutoDepositItems { for _, v := range clt.Config.AutoDepositItems {
o, err := getObjItem(getObjItemID(v, ``)) o, err := getObjItem(getObjItemID(v, ``))
logOnError(err, "botUserConfig : getObjItem("+v+")") logOnError(err, "botUserConfig : getObjItem("+v+")")
out = fmt.Sprintf("%s %s(<a href=\"https://t.me/share/url?url=/config_dep_del_item %s\">remove</a>)\n", out, o.Names[0], o.Code) out = fmt.Sprintf("%s %s (<a href=\"https://t.me/share/url?url=/config_dep_del_item %s\">remove</a>)\n", out, o.Names[0], o.Code)
} }
} }
if len(clt.Config.AutoDepositTypes) == 0 { if len(clt.Config.AutoDepositTypes) == 0 {
@ -964,7 +964,7 @@ func botUserConfig(m *ChatWarsMessage) {
} else { } else {
out = fmt.Sprintf("%s Item types\n", out) out = fmt.Sprintf("%s Item types\n", out)
for _, v := range clt.Config.AutoDepositTypes { for _, v := range clt.Config.AutoDepositTypes {
out = fmt.Sprintf("%s %s(<a href=\"https://t.me/share/url?url=/config_dep_del_type %s\">remove</a>)\n", out, v, v) out = fmt.Sprintf("%s %s (<a href=\"https://t.me/share/url?url=/config_dep_del_type %s\">remove</a>)\n", out, v, v)
} }
} }
} else { } else {