From 9704406fe53bf1a1da54e57d1447abe3b7c19472 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Tue, 28 Apr 2020 15:00:44 -0400 Subject: [PATCH] meme: text --- plugins/meme/meme.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/meme/meme.go b/plugins/meme/meme.go index 4ef72fc..1daf49d 100644 --- a/plugins/meme/meme.go +++ b/plugins/meme/meme.go @@ -2,6 +2,7 @@ package meme import ( "bytes" + "fmt" "image" "image/png" "net/http" @@ -73,7 +74,7 @@ func (p *MemePlugin) registerWeb(c bot.Connector) { log.Debug().Msgf("image is at %s", u.String()) p.bot.Send(c, bot.Message, channel, "", bot.ImageAttachment{ URL: u.String(), - AltTxt: user, + AltTxt: fmt.Sprintf("%s: %s", user, parts[1]), }) w.Write(nil) })