Add rate limiting to the chat function via a decorator. In theory this should eliminate the excess flood messages