Add duplicate prevention code

Add code to prevent duplicate questions from spamming chat (user can
turn this off).