mirror of https://github.com/velour/catbase.git
meme: text
This commit is contained in:
parent
ca629b6521
commit
15dcd5ba7c
|
@ -2,6 +2,7 @@ package meme
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"fmt"
|
||||||
"image"
|
"image"
|
||||||
"image/png"
|
"image/png"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
@ -73,7 +74,7 @@ func (p *MemePlugin) registerWeb(c bot.Connector) {
|
||||||
log.Debug().Msgf("image is at %s", u.String())
|
log.Debug().Msgf("image is at %s", u.String())
|
||||||
p.bot.Send(c, bot.Message, channel, "", bot.ImageAttachment{
|
p.bot.Send(c, bot.Message, channel, "", bot.ImageAttachment{
|
||||||
URL: u.String(),
|
URL: u.String(),
|
||||||
AltTxt: user,
|
AltTxt: fmt.Sprintf("%s: %s", user, parts[1]),
|
||||||
})
|
})
|
||||||
w.Write(nil)
|
w.Write(nil)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue