add some chat logic

1. add some chat logic