Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Bugfix with spam severities.
Browse files Browse the repository at this point in the history
  • Loading branch information
finnbear committed Mar 23, 2021
1 parent 9690c02 commit 6fe0d7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moderation.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ func Scan(text string) (types Type) {
// TODO: Define severe spam

if spamPercent > 50 {
types |= Spam & Moderate
types |= 0b010 << (4 * 3) // moderate spam
} else if spamPercent > 30 {
types |= Spam & Mild
types |= 0b001 << (4 * 3) // mild spam
}
}

Expand Down

0 comments on commit 6fe0d7a

Please sign in to comment.