You could store the info in a variable or hash table, and whenever a question is asked you check if it's the variable/hash table. If it is, you go on to the next question, etc.
Then after 24 hours you would do /unset %variable or /hfree table_name to reset.
The first time a question is used you could start a timer that will reset everything after 24h
This page is the best for looking into these things http://en.wikichip.org/wiki/Main_Page