We had a bot that would randomly say things in our IRC channel 15 years ago that worked like this. You could also mention it to prompt it to reply.
Every message was added to it's knowledge base and it would say random but hilarious stuff made up from all the nonsense we used to talk about.
Good times.