From 57182b4b5385f6f3dad95a7c20bfffb7ff5d3a24 Mon Sep 17 00:00:00 2001 From: smantic Date: Tue, 15 Oct 2024 19:04:41 -0500 Subject: [PATCH] speak: dont recognize generated messages as copypasta memes --- command/talk.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/command/talk.go b/command/talk.go index 0f3bf91..f1299b9 100644 --- a/command/talk.go +++ b/command/talk.go @@ -58,6 +58,8 @@ func speakCmd(ctx context.Context, robo *Robot, call *Invocation, effect string) r.CancelAt(t) return "" } + // block the generated message from being later recognized as a meme. + call.Channel.Memery.Block(call.Message.Time(), s) slog.InfoContext(ctx, "speak", "in", call.Channel.Name, "text", m, "emote", e) return m + " " + e }