process chat command