Sure it’d be possible but I don’t think it’d be something phantombot would support (As in, it may not be seen in a main build). Reason being is I see something like that slightly slowing down these alert events.
Would it only be follow alerts you want to filter or what? The more information the better.
Note that this will require core script modification, which means any time you update the bot you will have to redo this, and that you should make backups before doing any form of modification.