Yes, it's possible to write such a script but it's pretty lame in my opinion. It's done by an "on text" event. When it detects certain text, such as text of a trivia question then it auto-responds with an answer.