Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Use banned domain list from the hyperphish api#44

Open
kantenkugel wants to merge 3 commits into
masterfrom
feature/banned_domains
Open

Use banned domain list from the hyperphish api#44
kantenkugel wants to merge 3 commits into
masterfrom
feature/banned_domains

Conversation

@kantenkugel

@kantenkugel kantenkugel commented Feb 6, 2022

Copy link
Copy Markdown
Contributor

The bot will now fetch a list of banned domains from https://api.hyperphish.com/gimme-domains and check every message against said list.

  • The list is fetched on program start and every 15 minutes (default) after that
    • This is configurable through the domain_poll_frequency_min config key
  • The used ban-phrase for this kind of match will be "Scam detected" and it will be logged to the action log channel.
  • Ordering of the different checks will be: domains -> spam -> phrases

Other miscellaneous changes:

  • Fixed the example config to now properly use the phrases key in groups
  • Actually return if spam was detected. No need to fall through to group/phrase matching

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant