Cleanup [BOT]Info code

Duplicate chatcore file
Reorganise dependent files
Fix a bug for switch command