Create your own chatbot with EAIM! |
0 | ||
Hey! I present my new project: EAIM! But first, what is EAIM? is a small XML-based programming language that i've been working on. In this markup language, you can create your own chat bot, how? its simple! First you will need to create an database, you will save it line 2. To create chat lines, you have to separate each line of conversation with newline and then use some tags: • <cat></cat> - You will need these two tags to separate lines of conversation. • <pattern="TEXT"/> - the tag pattern will store the text that is typed by the player, you can use * random text or complement. the text have to be in upper case and not have accents. • <response="TEXT"/> - this tag will store what the bot will say when the line's pattern is activated. You can use <response="{TEXT1/TEXT2/TEXT3}"/> to set a random answer. • <bot='INFO'/> - returns INFO from the table bot.info . • <star='ID'/> - Returns a player's message. Separated by spaces, the id will return the word index: "hello user", <star='2'/> will return "user". Here's an database example: <cat><pattern="HI"/><response="{Hey!/Hey sweety}"/></cat> <cat><pattern="HOW ARE YOU"/><response="{I'm fine, thanks!/Fine,and you?}"/></cat> <cat><pattern="*"/><response="I dont understand you..."/></cat> I'm planning to make more implements to this script. If you have any suggestion, feel free to comment! Script You made an database? Send me a private message and it will appear here! |
Enginfener « Citoyen » 1424182380000
| 0 | ||
Thank you and idk Example Image pls? |