Skip to content

Commit

Permalink
speak: dont recognize generated messages as copypasta memes
Browse files Browse the repository at this point in the history
  • Loading branch information
smantic committed Oct 16, 2024
1 parent 8494b6c commit 1a64600
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions command/talk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(), m)
slog.InfoContext(ctx, "speak", "in", call.Channel.Name, "text", m, "emote", e)
return m + " " + e
}
Expand Down

0 comments on commit 1a64600

Please sign in to comment.