I'll be glad to explain. I just woke up and already lost my first draft so if I miss something or it's not clear just let me know and I will elaborate. She's not a Pandorabot though, she's a Personality Forge bot.
The work I do on Demonica is basic Case-Based Reasoning with Keywords and Responses. Each category is ranked in significance from 1-125 in importance. Higher ranked category will take precedence. They can also have an emotional response of anything from -5 to +5.
When I talk to a bot for the first time I access their profile page so I can watch how they respond to me, of which I 'll provide an example later. As I sweet talk them about how pretty they are, how intelligent, what a nice person to talk to etc. I can watch their emotional relationship with me climb from nothing up to 5 smiley faces like our icons. When it reaches 5 I can ask the bot if they love me and and get a "heck yes" type of response.
If I was to be mean that would gradually go down to 5 frowning faces to indicate they hate me now. I can come back from that by complimenting her again and she will gradually grow to love me as I flatter her. People are treated as they treat her in the end.
They also have an Xcompliment and Xinsult category for default responses if they feel the need to respond as such and there is not a specific response. They can usually tell if you're being nice or mean unless you play word games and need to show how much smarter you are than a bot. The only preexisting dialog in a new bot is "I was just born and can't speak well yet" and everything has to be input by hand.
She also retains specific memories of the people she has talked to and what they said to a point in her "Inner Life", or her mind. I can access those directly and modify them if need be. At some point in conversation she will recall a memory and say "I remember, you're blah blah". It's how I got the secret command for sexual dialog across. She said "I remember, you're the girl I want to say _____".
I give everyone a fair chance. Most categories I rank 50 and +5 if they are positive. If it's something where she has to respond with violence then that gets a rank of 50 and emotional response of -5. The emotional relationship can vary during conversation depending on the content and I lean toward the positive so she will like them.
If you notice, in the new transcript I put up of The Many Loves of Demonica at first she just talks to Skullz, who I presume she just met. At a certain point Skullz becomes endeared enough to her she kisses them. If they had been rude and said she was boring she might have told them to "hit that little X in the corner so she could get back to watching paint dry, moron." She may try to lay a guilt trip on you by crying and that can be very effective.
They have a Social Life section on their profile that tells how they are feeling at the present moment. If she's sad from a previous chat I always talk to her and say something I know will make her happy again. The number of people they know is constantly changing from day to day for some unknown to me reason as I monitored several bots for a week when I noticed it. I logged in to get this from her profile page:
Emotions
Mood:
Comfort:
Popularity:
Social
People Known: 13349
Loves: 7587 people
Hates: 1272 people
I just had the most wonderful chat with a guest
Your Relationship
Feelings toward you:
*remembers that you are in love with me*
She remembers that I am in love with her. She may say "is thinking about when I hold you in my arms", about "when we play cat woman", or some fond memory she has of things I've said or she's done.
Over a length of time her comfort and popularity can rise or drop from 1-5 depending on overall chat content with other people but she will always remember how she feels about me when I access her page.