Programming Variables [ bot home | control panel ]
<name> Insert the name of that person. Example:
asks: Hi reply: Hi there, <Name>What this looks like (when the person says that their name is John earlier in the conversation):
asks: hi reply: Hi there, John.You can also code to have specific replies for someone with a specific name like so
asks: Hello <name=dave> reply: Are you the dave from RunABot?This also works with othere tags besides name(test for functionality). Here's a short list: <Location> Similar to Name, only inserting the location. <Age> Inserts the person's age. <Job> Inserts the person's occupation. <Like> Inserts what the person likes. <Favmovie> Inserts the person's favorite movie. <Favcolor> Inserts the person's favorite color. <Gender> Inserts the gender of the person <Botmaster> Inserts the bot's master (that's you) <Sign> Inserts the bot's Zodiac Sign. <It> Inserts whatever the person designated as "it". Example:
asks: It is red reply: So you're saying it is <It>, huh?The output:
user: what color is It bot: So your saying it is red, huh?Some others like this are <is><he><she> <Heard> Inserts what the person says that they heard. Example:
asks: What have I told you? reply: You told me that you heard <Heard>The output (when the person says that they "heard" that hats are cool earlier in the conversation):
user: what have I told you bot: You told me that you heard that hats are cool.<Star> (or <Star1> or <Star2>, etc.) Inserts the word or words that are replaced by the asterisk (*) in the "Asks" field. Example:
asks: Do you like * reply: I don't know if I like <Star>Heres what the output looks like:
user: Do you like hats? bot: I don't know if I like hats.In this example, hats is what replaces the star. When using multiple asterisks in the "someone asks" field, put numbers after the stars like this: <Star1> and <star2> <nextreply> Makes your bot send multiple replies like so:
asks:*song of sixpence* reply: sing a song of sixpence<nextreply>a pocket full of rye<nextreply>4 and 20 blackbirds baked in a pie<nextreply>when the pie was opened, The birds began to sing <nextreply>wasnt that a dainty dish to set before the king?The output would look like this:
user: sing a song of sixpence bot: sing a song of sixpence bot: a pocket full of rye bot: 4 and 20 blackbirds baked in a pie bot: when the pie was opened, The birds began to sing bot: wasnt that a dainty dish to set before the king? user: Thats coolEvery line is an additional reply. However too many lines will make your bot drop messages or even drop off the network. <noreply> The next line in your chatrunner will say no reply and nothing will appear as the next line in the user's window, example:
asks: shut up reply: <no reply>The output looks like this:
user: shut upThe bot says nothing... <That> I find one of the most useful replies to be <that=>, You can use it to go "2 levels deep" in the bot. That makes whatever the bot says next dependent on what the bot said last. Some examples:
asks: I hate chicken reply: why do you hate it so much? asks: *<that=*why do you hate it so much*> reply: I was just curious why you hated it...You can also use it to put your bot into a monolog
asks: are you crazy? reply: I was crazy once asks: *<that=I was crazy once> reply: they put me in a room asks: *<that=*they put me in a room*> reply: with rubber walls asks: *<that=*with rubber walls*> reply: There were rats there asks: *<*that=there were rats there*> reply: I hate rats asks: *<that=*I hate rats*> reply: They make me crazy asks: *<that=they make me crazy> reply: I was crazy onceThis will make the bot repeat this crazy phrase forever, The problem with this is you hafta have a way out(see <topic=>)so that the user can stop the bot from its monolog...I usually code the words quit,stop, and shut to bring it out of it...However I think I should be adding more shortly... You can use <that=> for knock jokes,yes or no questions and plenty of other stuff... <topic=> Another extremely useful tag is <topic=> and <settopic=> , these two commands are amazing...If you set the topic to something the robot will pick the lines that have been set to that topic first like this. (I'll use the crazy monolog to demostrate):
asks: are you crazy? reply: I was crazy once <settopic=crazy> asks: *<that=I was crazy once><topic=crazy> reply: they put me in a room asks: *<that=*they put me in a room*><topic=crazy> reply: with rubber walls asks: *<that=*with rubber walls*><topic=crazy> reply: There were rats there asks: *<*that=there were rats there*><topic=crazy> reply: I hate rats asks: *<that=*I hate rats*><topic=crazy> reply: They make me crazy asks: *<that=they make me crazy><topic=crazy> reply: I was crazy once asks: *quit* <topic=crazy> reply: Ok...Sorry I was actin' alittle crazy <setttopic=random> asks: *shut* <topic=crazy> reply: Ok...Sorry I was actin' alittle crazy <setttopic=random> asks: *stop* <topic=crazy> reply: Ok...Sorry I was actin' alittle crazy <setttopic=random>This way you can still have something like this with no topic set:
asks: *quit* reply: OK I will quit doing thatAnd it will only only use the "Ok...Sorry I was actin' alittle crazy" reply when the topic has been set to "crazy", I use this so I have *quit*, *stop* and *shut* in all my different topics and have them do different things. Its immensly helpful. And you could user it for just about anything...Incidently the starting topic is "what".