From c089a80ffcf2368e09e45a1f2675d6762242127e Mon Sep 17 00:00:00 2001 From: Chris Sexton <3216719+chrissexton@users.noreply.github.com> Date: Fri, 12 Jan 2024 10:27:50 -0500 Subject: [PATCH] tldr: fix set bug --- plugins/tldr/tldr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tldr/tldr.go b/plugins/tldr/tldr.go index 521ecb8..60dc036 100644 --- a/plugins/tldr/tldr.go +++ b/plugins/tldr/tldr.go @@ -290,7 +290,7 @@ func (p *TLDRPlugin) resetTLDR(r bot.Request) bool { func (p *TLDRPlugin) setTLDR(r bot.Request) bool { prompt := r.Values["prompt"] + "\n" - p.c.Set(defaultTemplate, prompt) + p.c.Set(templateKey, prompt) p.b.Send(r.Conn, bot.Message, r.Msg.Channel, fmt.Sprintf(`Set prompt to: "%s"`, strings.TrimSpace(prompt))) return true }