Bot Coding Tips [ Bot Home ] (Written by Rockinbassman123)
User asks: I am *Note that in the asks field a * is used but to call the information that is saved to the star you must use
Bot Reply: Are you really <star>?
Cooldude44: I am smart.So if any user says "I am" before a word, your bot will always say "Are you really" then the word the user said.
Yourrobot: Are you really smart?
User asks: Did you know that * is *This allows more room for the user to say things and the bot to still respond correctly. <star1> must be used for the first * and <star2> must be used to call the second *. However it does not mean that <star2> must come before <star1> in the robot reply.
Bot reply: I did not know that <star1> was <star2>.
User asks: *pizza*If the user says "I like pizza" or "I think pizza is good", your bot will always say "I like pizza" unless you have a more specific reply.
Bot reply: I like pizza!
User asks: *The user could be saying "Hi" or "Ofisosifgdhs".
Bot reply: What are you trying to say?
User asks: I hate youNow 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.
Bot reply: That isn't very nice! <settopic=hate>
User asks: *<topic=hate>
Bot reply: I don't want to talk to you!
User asks: *Sorry*<topic=hate>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.
Bot reply: Well, okay...<settopic=hello>
User asks: I hate youNow varaible mood is storing the information hate. Now your user continues talking to your bot, signs off, sleeps, signs back on in the morning and talks to your bot.
Bot reply: That isn't nice!<setmood=hate>
Same user asks: I hate you<mood=hate>Now your bot responds realizing the user had said "I hate you" previously. Helpful for abusive users.
Bot reply: Didn't you already tell me that?
User asks: My name is *So you basiclly are saving <star> as a variable. You can now recall this user's name by putting <username> in the reply.
Bot reply: I will remember that your name is <star><setusername=<star>>
User asks: Are you dumbNow <that> is automaticlly set to "No I am not dumb".
Bot reply: No I am not dumb
User asks: Are you sure<that=no i am not dumb>...or you can use wildcards...
Bot reply: I am sure
User asks: Are you sure<that=*not dumb*>Now if the bot said replied with anything with "not dumb" in it and someone says "are you sure" it will reply "I am sure". This gives a broader range of possiblities.
Bot reply: I am sure
User asks: Hey there<noreply> makes your bot say nothing.
Bot reply: Hello <nextreply> How are you?
User asks: You are dumbA user comes with a variable <sn> which is their screen name without the numbers.
Bot reply: <noreply>
User asks: HeyI use this all the time because it gives the conversation a more personal feel.
Bot reply: Hey <sn>!
User asks: How are youSo the bot could say "Good", "Fine", or "Fantastic" to "How are you". Now user asks can use the | in a different way. This is for multiple different user asks for the same reply.
Bot reply: Good|Fine|Fantastic
User asks: Hey|Hello|Greetings|YoSo if the user says "Hey", "Hello", etc. the bot would say "Hello" as the same reply for all of them.
Bot replies: Hello
User asks: How are you?You can do this
Bot reply: Good
User asks: How are youGo to top
Bot reply: Good!