This commit is contained in:
shoopea 2020-02-10 12:19:05 +08:00
parent a23c2c341e
commit 326d16a49c

6
bot.go
View File

@ -894,11 +894,11 @@ func botCraftItem(m *ChatWarsMessage, r *regexp.Regexp) {
func botUserConfig(m *ChatWarsMessage) {
clt, _ := getLockedClient(m.TGUserID64, false)
clt.Mux.Unlock()
out := fmt.Printf("Config:\n")
out := fmt.Sprintf("Config:\n")
if clt.Config.InterceptPillage {
out = fmt.Printf("%s Pillage : ON (<a href=\"https://t.me/share/url?url=/config_pillage_off\">set off</a>)\n", out)
out = fmt.Sprintf("%s Pillage : ON (<a href=\"https://t.me/share/url?url=/config_pillage_off\">set off</a>)\n", out)
} else {
out = fmt.Printf("%s Pillage : OFF (<a href=\"https://t.me/share/url?url=/config_pillage_on\">set on</a>)\n", out)
out = fmt.Sprintf("%s Pillage : OFF (<a href=\"https://t.me/share/url?url=/config_pillage_on\">set on</a>)\n", out)
}
c := TGCommand{
Type: commandReplyMsg,