scratchattach
scratchattach copied to clipboard
filterbot bugfix and classes
Note the addition of __init__.py file and the need to put something in them
I'll implement the session string update
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.
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.
First, there were some bugs in the code that can be fixed this way and secondly, it allows users to create their own filters.
One of the commits fix a bug that prevents you from adding Spam-Filters or SoftFilters
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
ok