From 15dcd5ba7c0e71c22fda2d4b8ef5865703b1b418 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) })