Hmm. Should that not be fixed? I know it's not a "bug" but it's definitely incomplete, and there are more difficult effects that mafia(/maximizer) is capable of gathering.
So... asking for the same as the script that's already available?
What new functionality are you adding that would better serve having static datafiles instead of a more easily updated user script?
which throws me: do we not have static data files for every other effect and its source built-in? Is there some significant sign that the hatter buffs are going to change?
In statuseffects I see a wide array of sources. use, eat, pool... and then we have #tea party with x-char hat.
So, in essence, this would boil down to first a request for a CLI command (say... tea, party, or hatter) that behaves similarly to summon (cast with effect name or hat character length) and -then- uncommenting those effect acquisition methods (hatter 7, party On Wayne, whatever), and then (if it's not already default behavior for the maximizer to use all for which there is a method in the file) add them into the maximizer.