Skip to content

Commit

Permalink
another quick rule
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Sep 2, 2024
1 parent d03903b commit 7b06504
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions automod/rules/quick.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,15 @@ func BotLinkProfileRule(c *automod.RecordContext, profile *appbsky.ActorProfile)
c.AddAccountLabel("spam")
c.ReportAccount(automod.ReportReasonSpam, fmt.Sprintf("possible bot based on link in profile: %s", str))
c.Notify("slack")
return nil
}
}
if strings.Contains(*profile.Description, "🏈🍕🌀") {
c.AddAccountFlag("profile-bot-string")
c.ReportAccount(automod.ReportReasonSpam, fmt.Sprintf("possible bot based on string in profile"))
c.Notify("slack")
return nil
}
}
return nil
}
Expand All @@ -38,6 +45,7 @@ func SimpleBotPostRule(c *automod.RecordContext, post *appbsky.FeedPost) error {
c.AddAccountFlag("post-bot-string")
c.ReportAccount(automod.ReportReasonSpam, fmt.Sprintf("possible bot based on string in post: %s", str))
c.Notify("slack")
return nil
}
}
return nil
Expand All @@ -55,6 +63,7 @@ func NewAccountBotEmailRule(c *automod.AccountContext) error {
c.AddAccountFlag("new-suspicious-email")
c.ReportAccount(automod.ReportReasonSpam, fmt.Sprintf("possible bot based on email domain TLD: %s", tld))
c.Notify("slack")
return nil
}
}
return nil
Expand Down

0 comments on commit 7b06504

Please sign in to comment.