Probably the simplest approach is:
IF you are editing a bot (as opposed to adding a new one), then:
- remove the bot that is being edited
- create a new bot (based on the settings the user chose) and add that to the bot list
It's not possible to simply change the data fields of the bot being edited, because if you change "personality type", then you have to switch to a different subclass of ChatBot, and you can't change the type of an object after it's been created.