Finished added OnMessage, modified bot connecting