mirror of https://github.com/velour/catbase.git
counter: api should update goals
This commit is contained in:
parent
3343a98802
commit
fd670339c0
|
@ -87,6 +87,7 @@ func (p *CounterPlugin) mkIncrementAPI(delta int) func(w http.ResponseWriter, r
|
||||||
for _, ch := range p.cfg.GetArray("channels", []string{}) {
|
for _, ch := range p.cfg.GetArray("channels", []string{}) {
|
||||||
p.b.Send(p.b.DefaultConnector(), bot.Message, ch, msg)
|
p.b.Send(p.b.DefaultConnector(), bot.Message, ch, msg)
|
||||||
}
|
}
|
||||||
|
sendUpdate(req, userName, itemName, item.Count)
|
||||||
j, _ := json.Marshal(struct{ Status bool }{true})
|
j, _ := json.Marshal(struct{ Status bool }{true})
|
||||||
fmt.Fprint(w, string(j))
|
fmt.Fprint(w, string(j))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue