Is it possible to replace a chat message with something else?

Hi, is it possible to replace a message when a player chat with something else? How could I achieve that?

2 Likes