Setting Topics
Your robot can set a variable called a topic. This is very useful for only having your bot respond to certain things if the user has triggered for the topic to be set. A topic is set by using <settopic=> and retrevied by <topic=>. Observe...User asks: I hate you
Bot reply: That isn't very nice! <settopic=hate>
Now the topic is hate because the user triggered the reply with the <settopic=hate> in it. This doesn't come in handy until the next replies.User asks: *<topic=hate>
Bot reply: I don't want to talk to you!
User asks: *Sorry*<topic=hate>
Bot reply: Well, okay...<settopic=hello>
This is great for when people abuse your bot because it "remembers" what recently happened unless the topic had been overwriten by another reply. This problem can be solved in the next section.