Skip to content

mokurin000/anti-spam-matrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

anti-spam-matrix

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.

Build

To get an regular build:

cargo build --release

To get a statically-linked build:

cargo build --release --no-default-features \
    -F eyra-as-std \
    -F rustls-tls \
    -F socks

Usage

Authorization

Currently 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"

Setup a proxy

proxy = "socks5://114.51.41.191:9810"

or

proxy = "http://name:passwd@114.51.41.191:9810"

About

A anti-spam Matrix Bot that runs blazingly fast™ 🚀

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages