Bot recognite word

How to create bot recognite?
Example: “Today, im so sad”
Bot will recognite word “sad”
And respond from my word system.
I use discord lib

I mean, the same way you would write a discord bot in general?
Pretty sure those already read and analyze messages - so there shouldn’t be much to add.