ehForwarderBot / efb-wechat-slave

A channel for EH Forwarder Bot.
GNU Affero General Public License v3.0
458 stars 62 forks source link

add flag ``ignore_chats`` to filter spam/ads #114

Closed ahxxm closed 3 years ago

blueset commented 3 years ago

For message filtering, please use a middleware instead of making changes to a Channel. Also, please check the Module Repository to see if there is already a module that can fit your purpose.

Thank you for contributing to EWS.

ahxxm commented 3 years ago

there are indeed 2 message filtering middlewares, one requires complex configuration, another one does not filter messages from subscription accounts, none of them fit my purpose...

blueset commented 3 years ago

If that’s the case, you might also want to try this demo middleware filter. I had a plan of porting it to PyPI for its demand, but haven’t got a chance to do so. In the meanwhile, you can add it to your EFB_DATA_PATH/modules directory.

ahxxm commented 3 years ago

thanks! this demo looks easy to configure and more powerful than existing ones

i've forked one and make it work for myself