I want to automate my account to reply messages which have some particular words. I don’t want to spam, it’s only a joke account to make others laugh, so I think this wouldn’t break Twitter rules.
We discourage automating @replies based on keyword, and this behavior is proscribed by the Twitter Rules (https://support.twitter.com/articles/18311-the-twitter-rules). The systems which monitor for automated @replies do not make exceptions for “joke accounts,” so we would recommend against engaging in this behavior.
Twitter Platform Operations