tldr: fix set bug

This commit is contained in:
Chris Sexton 2024-01-12 10:27:50 -05:00
parent 3ff95d3c85
commit c089a80ffc
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ func (p *TLDRPlugin) resetTLDR(r bot.Request) bool {
func (p *TLDRPlugin) setTLDR(r bot.Request) bool { func (p *TLDRPlugin) setTLDR(r bot.Request) bool {
prompt := r.Values["prompt"] + "\n" 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))) p.b.Send(r.Conn, bot.Message, r.Msg.Channel, fmt.Sprintf(`Set prompt to: "%s"`, strings.TrimSpace(prompt)))
return true return true
} }