Skip to content

Commit

Permalink
less emoj by default
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Dec 6, 2023
1 parent 1b9fde2 commit 30b9ca4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/bot/spam_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func TestFilter_OnMessage(t *testing.T) {
Dry: false,
HTTPClient: mockedHTTPClient,
SpamMsg: "this is spam! go to ban",
MaxAllowedEmoji: 2,
})
require.NoError(t, err)

Expand Down
2 changes: 1 addition & 1 deletion app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var opts struct {
SimilarityThreshold float64 `long:"similarity-threshold" env:"SIMILARITY_THRESHOLD" default:"0.5" description:"spam threshold"`

MinMsgLen int `long:"min-msg-len" env:"MIN_MSG_LEN" default:"50" description:"min message length to check"`
MaxEmoji int `long:"max-emoji" env:"MAX_EMOJI" default:"5" description:"max emoji count in message"`
MaxEmoji int `long:"max-emoji" env:"MAX_EMOJI" default:"2" description:"max emoji count in message"`
ParanoidMode bool `long:"paranoid" env:"PARANOID" description:"paranoid mode, check all messages"`

Message struct {
Expand Down

0 comments on commit 30b9ca4

Please sign in to comment.