This is a simple Matrix spam banning bot.
Its logic is currently straightforward:
If a user triggers the specified keyword in a certain number of consecutive messages, they will be banned.
If a user triggers the keyword in numerous (the spam_limit) consecutive messages in different groups, they will also be banned.
The bot will ban the spammer in all rooms where it has permissions.
To get an regular build:
cargo build --releaseTo get a statically-linked build:
cargo build --release --no-default-features \
-F eyra-as-std \
-F rustls-tls \
-F socksCurrently we support two authurization methods, sso and password
[auth]
type = "password"
password = "VeryHardPassword"Note: In SSO login, username part of the userid will be ignored.
[auth]
type = "sso_login"proxy = "socks5://114.51.41.191:9810"or
proxy = "http://name:passwd@114.51.41.191:9810"