I think this has to be both a client and relay side feature, not a bot. A relay may add a tag to an event to say that it 'thinks' it is a spam/nsfw.. A bot solution would be too much unnecessary traffic. A mobile client can't have necessary ML burden. best place is relay imo.