cowboy: fix original url

This commit is contained in:
Chris Sexton 2022-07-23 09:08:08 -04:00
parent 51da6187b0
commit 274d8f6966
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ func (p *Cowboy) makeCowboy(r bot.Request) {
} }
log.Debug().Msgf("makeCowboy: %s", r.Values["what"]) log.Debug().Msgf("makeCowboy: %s", r.Values["what"])
base := p.c.Get("baseURL", "http://127.0.0.1:1337") base := p.c.Get("baseURL", "http://127.0.0.1:1337")
u := base + "/cowboy/img/" + r.Values["what"] u := base + "/cowboy/img/hat/" + r.Values["what"]
p.b.Send(r.Conn, bot.Delete, r.Msg.Channel, r.Msg.ID) p.b.Send(r.Conn, bot.Delete, r.Msg.Channel, r.Msg.ID)
p.b.Send(r.Conn, bot.Message, r.Msg.Channel, "", bot.ImageAttachment{ p.b.Send(r.Conn, bot.Message, r.Msg.Channel, "", bot.ImageAttachment{
URL: u, URL: u,