scratchattach icon indicating copy to clipboard operation
scratchattach copied to clipboard

filterbot bugfix and classes

Open TheCommCraft opened this issue 1 year ago • 7 comments

Note the addition of __init__.py file and the need to put something in them

TheCommCraft avatar Oct 01 '24 18:10 TheCommCraft

I'll implement the session string update

TimMcCool avatar Oct 01 '24 22:10 TimMcCool

Adding init.py files to sub-folders is actually not necessary afaik because everything is imported in the top-level init.py files. I tested it by replacing the files in the site-packages/scratchattach folder and it works.

TimMcCool avatar Oct 02 '24 00:10 TimMcCool

Ok ig adding the init.py files is necessary because it allows users to import stuff that isn't imported in the top-level init.py file. I'll add them.

TimMcCool avatar Oct 02 '24 00:10 TimMcCool

First, there were some bugs in the code that can be fixed this way and secondly, it allows users to create their own filters.

TheCommCraft avatar Oct 02 '24 05:10 TheCommCraft

One of the commits fix a bug that prevents you from adding Spam-Filters or SoftFilters

TheCommCraft avatar Oct 02 '24 10:10 TheCommCraft

Oh ok. Fixed the bug that prevented users from adding SpamFilters and SoftFilters by editing the add_filter function. But adding own filters is already possible by creating a class that inherits from HardFilter / SoftFilter and overriding the apply method

TimMcCool avatar Oct 02 '24 12:10 TimMcCool

ok

TheCommCraft avatar Oct 04 '24 18:10 TheCommCraft