Skip to content

Username filtering#710

Merged
Xithrius merged 4 commits intomainfrom
better-filters
Feb 16, 2026
Merged

Username filtering#710
Xithrius merged 4 commits intomainfrom
better-filters

Conversation

@Xithrius
Copy link
Owner

@Xithrius Xithrius commented Feb 16, 2026

Filters can now be done on not just messages, but usernames too. Originally the Filters structure only supported filtering of messages.

For username filtering, if you don't want bots, you can add something such as this to your config:

[filters]
[filters.username]
filters = [
    ".*bot.*"
]
enabled = true

Filters will now be searched in the following order (with message and username filters not relying on another to function):

  1. Configuration file at both filter.message.filters and filters.username.filters
  2. The file specified at filters.message.path and filters.username.path. Each filter must be separated by a newline if you want multiple.
  3. The contents of the file located at the configuration folder base (such as ~/.config/twt/), then both message_filters.txt and username_filters.txt. Each filter must be separated by a newline, just like the previous step.

@Xithrius Xithrius changed the title Separated filters into username/message-specific Username filtering Feb 16, 2026
@Xithrius Xithrius merged commit a20f17c into main Feb 16, 2026
8 checks passed
@Xithrius Xithrius deleted the better-filters branch February 16, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant