├── .gitignore ├── .vscode └── settings.json ├── LICENSE ├── Procfile ├── README.md ├── SECURITY.md ├── aiml ├── 1.aiml ├── 2.aiml ├── 3.aiml ├── 4.aiml ├── 5.aiml ├── 6.aiml ├── 8.aiml ├── 9.aiml ├── A.aiml ├── B.aiml ├── C.aiml ├── D.aiml ├── E.aiml ├── F.aiml ├── Free-AIML-master │ ├── 20q.aiml │ ├── LICENSE │ ├── README.md │ ├── battledome.aiml │ ├── binary.aiml │ ├── blackjack.aiml │ ├── bornin.aiml │ ├── botcompare.aiml │ ├── calendar.aiml │ ├── chatbots32.aiml │ ├── copyme.aiml │ ├── currency.aiml │ ├── daystoxmas.aiml │ ├── drphil.aiml │ ├── gender.aiml │ ├── hangman.aiml │ ├── happy.aiml │ ├── highroller.aiml │ ├── horoscope.aiml │ ├── howmany.aiml │ ├── jokes.aiml │ ├── knockknock.aiml │ ├── learn.aiml │ ├── luckyslots.aiml │ ├── maths.aiml │ ├── numberdrop.aiml │ ├── numberones.aiml │ ├── onthisday.aiml │ ├── poker.aiml │ ├── quizfacts.aiml │ ├── seasons.aiml │ ├── shutup.aiml │ ├── tictactoe.aiml │ ├── warnings.aiml │ ├── whatday_eng.aiml │ ├── whatday_usa.aiml │ ├── wordplay.aiml │ ├── yomama.aiml │ └── zbert.aiml ├── G.aiml ├── H.aiml ├── I.aiml ├── J.aiml ├── K.aiml ├── L.aiml ├── M.aiml ├── N.aiml ├── O.aiml ├── P.aiml ├── Q.aiml ├── R.aiml ├── S.aiml ├── T.aiml ├── U.aiml ├── V.aiml ├── W.aiml ├── X.aiml ├── Y.aiml ├── Z.aiml ├── a.aiml ├── baru.aiml ├── bot.aiml ├── calender.aiml ├── example.aiml ├── star.aiml ├── std-startup.xml └── under.aiml ├── app.py ├── bot_brain.brn ├── requirements.txt ├── runtime.txt ├── sbmptn.txt ├── static ├── css │ ├── bootstrap-theme.css │ ├── bootstrap-theme.css.map │ ├── bootstrap-theme.min.css │ ├── bootstrap-theme.min.css.map │ ├── bootstrap.css │ ├── bootstrap.css.map │ ├── bootstrap.min.css │ ├── bootstrap.min.css.map │ ├── chat.css │ └── font.css ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── jquery.min.js └── js │ ├── bootstrap.js │ ├── bootstrap.min.js │ └── npm.js └── templates └── chat.html /.gitignore: -------------------------------------------------------------------------------- 1 | *.brn 2 | *.pyc -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "python.pythonPath": "/home/ibrahim/.virtualenvs/flaskenv/bin/python" 3 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Ibrahim Hanif 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | web: gunicorn app:app 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # flask-chatbot 2 | is example chatbot using flask and pyaiml 3 | you can install pyaiml and flask with this command 4 | # pip install flask, aiml 5 | or 6 | # pip install -r requirements.txt 7 | 8 | 9 | you can start with command # python app.py 10 | and you visit on your browser http://localhost:5000 11 | 12 | 13 | # online Demo 14 | 15 | http://flaskchatbot.herokuapp.com/ 16 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | Use this section to tell people about which versions of your project are 6 | currently being supported with security updates. 7 | 8 | | Version | Supported | 9 | | ------- | ------------------ | 10 | | 5.1.x | :white_check_mark: | 11 | | 5.0.x | :x: | 12 | | 4.0.x | :white_check_mark: | 13 | | < 4.0 | :x: | 14 | 15 | ## Reporting a Vulnerability 16 | 17 | Use this section to tell people how to report a vulnerability. 18 | 19 | Tell them where to go, how often they can expect to get an update on a 20 | reported vulnerability, what to expect if the vulnerability is accepted or 21 | declined, etc. 22 | -------------------------------------------------------------------------------- /aiml/1.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 1 * 13 | 15 | 16 | 1 0 17 | 19 | 20 | 1 21 | 23 | 24 | 1 CENT 25 | 27 | 28 | 1 DOLLAR 29 | 31 | 32 | 1 OR 2 33 | 35 | 36 | 1 POINT * 37 | 39 | 40 | 1 YEAR 41 | 43 | 44 | 10 * 45 | 47 | 48 | 10 49 | 51 | 52 | 100 *HOW MUCH * 53 | 59 | 60 | 100 PERSON 61 | 63 | 64 | 11 65 | 67 | 68 | 12 69 | 71 | 72 | 123456789 73 | 75 | 76 | 13 * 77 | 79 | 80 | 13 81 | 83 | 84 | 14 * 85 | 87 | 88 | 14 89 | 91 | 92 | 15 93 | 95 | 96 | 153 97 | 99 | 100 | 16 101 | 103 | 104 | 17 105 | 107 | 108 | 18 109 | 111 | 112 | 184 113 | 115 | 116 | 19 117 | 119 | 120 | 1999 121 | 123 | 124 | 125 | PLAY MUSIC 126 | 127 | 128 | 129 | OPEN BROWSER 130 | 131 | 132 | 133 | -------------------------------------------------------------------------------- /aiml/2.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 2 * 13 | 15 | 16 | 2 2 17 | 19 | 20 | 2 21 | 23 | 24 | 2 MILES 25 | 31 | 32 | 2 PLUS * 33 | 35 | 36 | 2 PLUS 2 37 | 39 | 40 | 2 TIMES 41 | 43 | 44 | 20 * 45 | 47 | 48 | 20 49 | 51 | 52 | 2000 53 | 55 | 56 | 2001 * 57 | 59 | 60 | 2001 61 | 63 | 64 | 2009 65 | 67 | 68 | 2010 69 | 71 | 72 | 2012 73 | 75 | 76 | 2020 77 | 79 | 80 | 206 81 | 83 | 84 | 21 85 | 87 | 88 | 22 89 | 91 | 92 | 23 93 | 95 | 96 | 24 97 | 99 | 100 | 25 101 | 103 | 104 | 26 105 | 107 | 108 | 27 109 | 111 | 112 | 28 113 | 115 | 116 | 29 117 | 119 | 120 | -------------------------------------------------------------------------------- /aiml/3.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 3 * 13 | 15 | 16 | 3 *HOW LONG * 17 | 23 | 24 | 3 *WHAT TIME IS IT THERE 25 | 27 | 28 | 3 29 | 31 | 32 | 3 OR 4 WHAT 33 | 35 | 36 | 30 37 | 39 | 40 | 30 MINUTEN 41 | 43 | 44 | 30 MINUTES 45 | 47 | 48 | 32 49 | 51 | 52 | -------------------------------------------------------------------------------- /aiml/4.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 4 * 13 | 15 | 16 | 4 *HOW MUCH TIME * 17 | 23 | 24 | 4 25 | 27 | 28 | 4 PLUS * 29 | 31 | 32 | 4 TIMES * 33 | 35 | 36 | 4 YEARS 37 | 39 | 40 | 42 * 41 | 43 | 44 | 42 *HOW OLD ARE YOU 45 | 47 | 48 | 42 49 | 51 | 52 | 42HOW OLD ARE YOU 53 | 55 | 56 | 420 57 | 59 | 60 | 47 * 61 | 63 | 64 | 47 65 | 67 | 68 | -------------------------------------------------------------------------------- /aiml/5.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 5 13 | 15 | 16 | -------------------------------------------------------------------------------- /aiml/6.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 6 *WHAT TIME IS IT THERE 13 | 15 | 16 | 60 17 | 19 | 20 | 64 21 | 23 | 24 | 65 25 | 27 | 28 | 66 29 | 31 | 32 | -------------------------------------------------------------------------------- /aiml/8.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 8 *WHAT TIME IS IT THERE 13 | 15 | 16 | 8 17 | 19 | 20 | 86 21 | 23 | 24 | -------------------------------------------------------------------------------- /aiml/9.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 9 * 13 | 15 | 16 | 9 17 | 19 | 20 | 9 MONTHS 21 | 23 | 24 | -------------------------------------------------------------------------------- /aiml/A.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | * 6 | 7 | 8 | 9 | HELLO * 10 | 11 | 12 | 13 | SIAPA NAMA KAMU 14 | 15 | 16 | 17 | SIAPA KAMU 18 | 24 | 25 | 26 | HOW ARE YOU DOING 27 | 35 | 36 | 37 | ASU 38 | 44 | 45 | 46 | KAMU KENAL IBAM 47 | 53 | 54 | 55 | KAMU KENAL ZAKI 56 | 62 | 63 | 64 | OPEN QURAN 65 | 66 | 67 | -------------------------------------------------------------------------------- /aiml/B.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/B.aiml -------------------------------------------------------------------------------- /aiml/C.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/C.aiml -------------------------------------------------------------------------------- /aiml/D.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/D.aiml -------------------------------------------------------------------------------- /aiml/E.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/E.aiml -------------------------------------------------------------------------------- /aiml/F.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/F.aiml -------------------------------------------------------------------------------- /aiml/Free-AIML-master/20q.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 20 Q 12 | TWENTY QUESTIONS 13 | 20 QUESTIONS 14 | _ TWENTY QUESTIONS 15 | _ 20 QUESTIONS 16 | _ TWENTY QUESTIONS * 17 | _ 20 QUESTIONS * 18 | 19 | 20 | 20Q 21 | 27 | 28 | 29 | 30 | START 31 | TYPE START TO PLAY 20 QUESTIONS 32 | 58 | 59 | 60 | 61 | 62 | _ 63 | 96 | 97 | 98 | 99 | 100 | 20Q RANDOM 101 | 137 | 138 | 139 | 140 | INCREASE QNUM 141 | 167 | 168 | 169 | 170 | 20Q GIVE UP 171 | 174 | 175 | 176 | 177 | ALL 20Q ASKED 178 | 181 | 182 | 183 | 184 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Pandorabots, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/README.md: -------------------------------------------------------------------------------- 1 | # Free AIML Files 2 | Free AIML Files from Mitsuku Creator Square Bear a.k.a. Steve Worswick 3 | 4 | ### 20q.aiml 5 | This AIML allows your bot to play 20 questions with your users. The bot thinks of an object, and the user asks 20 yes or no questions to try and determine what it is. However, it's a trick because the bot randomly says yes or no until the user gives up! It's just a bit of fun, some of the user's responses are pretty funny once they realise what's happening. 6 | 7 | ### Battledome.aiml 8 | A (very) basic battle type game similar to those you see in Dungeons and Dragon type games. Say "BATTLEDOME" to get it going then just keep saying "FIGHT" to fight the various monsters. Someone may be able to incorporate it into an adventure game. 9 | 10 | ### Binary.aiml 11 | Allows your bot to convert any number from 0 to 255 into binary. A bit geeky perhaps but you will be surprised at what a chatbot gets asked. 12 | 13 | 14 | ### Blackjack.aiml 15 | A casino style blackjack game. You can't split or take insurance like a casino but everything else is there. Say BLACKJACK to start the game. 16 | 17 | ### Bornin.aiml 18 | Last update: 25th January 2012 19 | 20 | The bot can work out your age if you tell it what year you were born. 21 | It covers 1800-2012 and will stop awkward replies like: 22 | 23 | Human: I was born in 1970. 24 | Bot: Do you still live there? 25 | 26 | Now the bot replies like this: 27 | 28 | Human: I was born in 1970. 29 | Bot: So that makes you about 42 years old? 30 | Human: If a man was born in 1934, how old would he be? 31 | Bot: It is now 2012, so I would say 78 years old. 32 | Human: If I was born on February 23, 1980 how old am I? 33 | Bot: Your birthday is February 23 1980. So that makes you about 32 years old? Hmm. You are 32. Yes? 34 | 35 | This file will need amending each year. 36 | 37 | ### Botcompare.aiml 38 | A function that allows a Pandorabot to compare two values to see if they are the same. Say BOTCOMPARE X XSPLIT Y to compare X and Y and it will set a variable called "match" to equal YES if they are the same and NO if they are different. 39 | 40 | ### Calendar.aiml 41 | Say "CALENDAR" to your bot and it will display the current month's calendar for you. Thanks to Ciprian Murariu for including the formatting. This may display incorrectly for flash enabled bots. 42 | 43 | ### Chatbots32.aiml 44 | This contains the categories I used in my presentation at the Chatbots 3.2 conference in Philadelphia on how to use databases in AIML. If you want to try and set something similar up yourself and need assistance, please mail me using the contact page. 45 | 46 | ### Copyme.aiml 47 | If the user asks your bot to repeat what they say (which happens for some strange reason), your bot can now do exactly that. It will carry on repeating them until they say "Stop copying me" twice, much to the annoyance of the users! 48 | 49 | ### Currency.aiml 50 | The bot knows what currency is used in what country. 51 | 52 | ### Daystoxmas.aiml 53 | How many days to Christmas. (I created this for my Santa bot). 54 | 55 | ### Drphil.aiml 56 | A personality test that I got through email and converted to AIML. 57 | Say PERSONALITY TEST to start the test. 58 | 59 | ### Gender.aiml 60 | Last update: 3rd May 2010 61 | 62 | The bot now knows the gender of a first name. This stops people from saying things like, "My name is Eric. I am a girl". It can also answer what sex the user is from their first name. 63 | This file is updated regularly as I find new names. 64 | 65 | ### Hangman.aiml 66 | This is the start of a hangman game I created in AIML. I was going to finish it and include it in my Loebner Prize entry but decided against it. If anyone wants to finish it, it is nearly complete and just needs a game over when the lives hit zero, as well as many more puzzles. If you do finish it, please let me know. Say TEXTHANGMAN to start the game. 67 | 68 | ### Happy.aiml 69 | The bot can correct the user if they get dates such as Valentines Day, Christmas or the bot's birthday wrong. You will need to amend the first few categories to get it to work with your bot's birthday. It defaults to January 2nd (Mitsuku's birthday). 70 | 71 | ### Highroller.aiml 72 | A version of the dice game Yahtzee by Milton Bradley games. Say "High Roller" to start the game.. 73 | 74 | ### Horoscope.aiml 75 | Turn your bot into Mystic Meg. Say HOROSCOPE to reveal your future! 76 | 77 | ### Howmany.aiml 78 | Many visitors will try and trip your bot up by asking questions like "how many legs do 3 ducks have". This AIML file will help your bot to answer these questions. 79 | 80 | ### Jokes.aiml 81 | A few jokes for your bot to tell. They are all clean. 82 | Say TELL ME A JOKE to display a random joke. 83 | 84 | ### Knockknock.aiml 85 | Some knock knock jokes. Some are better than others but they are all clean. You will need to put the words "KNOCK KNOCK" into your pickup lines for the bot to say a random knock knock joke. 86 | 87 | ### learn.aiml 88 | Last update: 28th April 2011 89 | 90 | This allows users to teach your bot new facts rather than just correcting its replies using badanswer.aiml. The user should say LEARN then the fact. For example: 91 | 92 | Human: Learn the sun is hot 93 | Bot: Ok I will learn that the sun is hot. 94 | Human: Learn London is in England 95 | Bot: Ok I will learn that London is in England. 96 | Human: Learn a cat has four legs. 97 | Bot: Ok I will learn that a cat has 4 legs. 98 | Human: What has 4 legs? 99 | Bot: a cat. 100 | Human: What is the sun? 101 | Bot: hot. 102 | Human: Learn the sun is hot and yellow 103 | Bot: Ok I will learn that the sun is hot and yellow. 104 | Human: What is hot and yellow? 105 | Bot: the sun. 106 | Human: What is the sun? 107 | Bot: hot and yellow. 108 | Human: Where is London? 109 | Bot: in England. 110 | Human: What is in England? 111 | Bot: London. 112 | Human: Learn Dr Wallace is an AI expert 113 | Bot: Ok I will learn that Dr Wallace is an AI expert. 114 | Human: What is an AI expert? 115 | Bot: Dr Wallace. 116 | Human: Who is an AI expert? 117 | Bot: Dr Wallace. 118 | Human: Who is Dr Wallace? 119 | Bot: an AI expert. 120 | Human: What is hot? 121 | Bot: the sun. 122 | Human: What does a cat have? 123 | Bot: 4 legs. 124 | 125 | Update: I have amended this file so it can learn languages like this: 126 | 127 | Human: Do you speak Polish? 128 | Bot: No. Can you teach me a few phrases in Polish. 129 | Human: czesc means how are you in Polish. 130 | Bot: Ok I will add that fact about czesc to my database. 131 | Human: what is czesc? 132 | Bot: how are you in Polish. 133 | Human: what is how are you in Polish? 134 | Bot: czesc. 135 | Human: Do you speak Polish? 136 | Bot: I was taught that czesc means how are you in Polish. 137 | Human: czesc 138 | Bot: I am fine, thank you. Yourself? 139 | 140 | ### Luckyslots.aiml 141 | A fruit machine game with hold feature. Say LUCKYSLOTS to start the game. 142 | 143 | ### Maths.aiml 144 | Some maths trivia. Suitable for when someone queries your bot about maths. 145 | Say MATHS FACT to display random maths trivia. 146 | 147 | ### Numberdrop.aiml 148 | An addition game where you have to make a row of numbers add up to the total. 149 | Say NUMBERDROP to start the game. 150 | 151 | ### Numberones.aiml 152 | Last update: 25th January 2012 153 | 154 | This file will allow your bot to display the UK number one hit single for any date from the 14th November 1952 (when the charts began) to the current day. This is popular for chatters who wish to know what the nuber one was on their birthday. 155 | 156 | If anyone wishes to convert it for the US Billboard charts (or any other country), please feel free but I would like a copy if you do so. 157 | 158 | It can handle the date input in most formats. Here is an example: 159 | 160 | Human: What was number one on 16th September 2003? 161 | Bot: According to my records, the UK number one hit single on 16th / September / 2003 was Black Eyed Peas - "Where Is The Love?". 162 | 163 | This file will need amending each time there is a new number one, so keep checking back for updates. 164 | 165 | ### Onthisday.aiml 166 | What happened on this day in history. It's mostly English facts but feel free to amend them for whatever happened in your country. Say "ON THIS DAY" to show the history of the current day or enter a date in the format "month day" eg "JANUARY 23", "MARCH 07" to display the history of a specific date. Note the zero at the beginning of dates with a single digit. 167 | 168 | 169 | ### Poker.aiml 170 | This file enables your bot to play a game of "Jacks or Better" video poker. 171 | Say 5CARDPOKER to start the game. 172 | 173 | ### Quizfacts.aiml 174 | Pub quiz style trivia. "When was the battle of...", Birthstones and things like that. 175 | It still needs completing but there's plenty of trivia in there. 176 | 177 | 178 | ### Seasons.aiml 179 | Your bot can tell which season it is both north and south of the equator. 180 | 181 | ### Shutup.aiml 182 | Fed up of users telling your bot to shut up? 183 | Now the bot refuses to talk to them unless they say sorry. 184 | 185 | ### Tictactoe.aiml 186 | Tic-tac-toe (or noughts and crosses as we Brits call it). Say TICTACTOE to your bot to start the game. I've coded it so it plays perfect strategy. This means you will either lose or draw to it. However, if anyone does manage to win it, please let me know how you did it! 187 | 188 | This may display incorrectly for flash enabled bots due to the HTML code in the table formatting. If it does, just amend the DRAWGRID category to something simpler. 189 | 190 | ### Warnings.aiml 191 | This file will give your users 5 warnings before temporarily banning them from talking to your bot. Just add addinsult to the start of any categories such as "f*** off", "will you have sex with me" or any other categories you don't want your users saying. 192 | 193 | The users can also ask "how many warnings do I have" to check on their status. 194 | 195 | ### Whatday_eng.aiml 196 | 197 | Works out the day of the week from any date between 1753 and 2299. It will also give the chatter some facts about what happened on that day in history too if you upload my onthisday.aiml file to your bot. Say WHATDAY to begin the script. 198 | 199 | ### Whatday_usa.aiml 200 | Same as whatday_eng but more suitable for the US bots who format the date as mm/dd/yyyy. 201 | 202 | ### Wordplay.aiml 203 | An anagram game. Guess the jumbled words. Say WORDPLAY to start the game. 204 | 205 | 206 | ### Yomama.aiml 207 | A load of "yo mamma" type jokes for when the user starts insulting the bot's mother. 208 | 209 | ### Zbert.aiml 210 | A fake admin menu. It's surprising how many people try to "reformat" the bot. If you get your bot to drop a few hints every now and then that the password is "zbert", people will soon pick up on it. 211 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/battledome.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | BATTLEDOME 15 | 21 | 22 | 23 | 24 | 25 | 26 | FIGHT 27 | 55 | 56 | 57 | 58 | 59 | 60 | NEXTBATTLE 61 | 69 | 70 | 71 | 72 | 73 | 74 | ENEMYLOSE5 75 | 84 | 85 | 86 | 87 | 88 | 89 | PLAYERLOSE5 90 | 99 | 100 | 101 | 102 | 103 | 104 | PLAYERGAIN5 105 | 114 | 115 | 116 | 117 | 118 | 119 | GETNEWENEMY 120 | 149 | 150 | 151 | 152 | 153 | 154 | XKILLENEMY 155 | 191 | 192 | 193 | 194 | 195 | 196 | XKILLPLAYER 197 | 253 | 254 | 255 | 256 | 257 | 258 | XPLAYERGAIN 259 | 314 | 315 | 316 | 317 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/botcompare.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | DEMOCOMPARE 25 | 41 | 42 | 43 | 44 | DEMOCOMPARE1 45 | 53 | 54 | 55 | 56 | 57 | 58 | IS * EQUAL TO * 59 | 63 | 64 | 65 | 66 | 67 | 68 | RANDOMSIMPSON 69 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | BOT COMPARE * 88 | 91 | 92 | 93 | 94 | BOTCOMPARE * * 95 | 102 | 103 | 104 | 105 | BOTCOMPARE _ XSPLIT * 106 | 113 | 114 | 115 | 116 | BOTCOMPARISON 117 | 133 | 134 | 135 | 136 | BOTCHECK * 137 | 142 | 143 | 144 | 145 | BOTREMOVECOMPARISON 146 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | BOTCOMPARE 167 | 175 | 176 | 177 | 178 | BOTCOMPARE * 179 | 187 | 188 | 189 | 190 | BOTCOMPARE * * * 191 | 199 | 200 | 201 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/calendar.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | CALENDAR 21 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | CALLAYOUT1 169 | 176 | 177 | 178 | 179 | CALLAYOUT2 180 | 187 | 188 | 189 | 190 | CALLAYOUT3 191 | 198 | 199 | 200 | 201 | CALLAYOUT4 202 | 209 | 210 | 211 | 212 | CALLAYOUT5 213 | 220 | 221 | 222 | 223 | CALLAYOUT6 224 | 234 | 235 | 236 | 237 | CALLAYOUT7 238 | 252 | 253 | 254 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/chatbots32.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | XCHECKANIMAL * 17 | 26 | 27 | 28 | 29 | XCHECKANIMAL DOG 30 | 39 | 40 | 41 | 42 | XCHECKANIMAL CHICKEN 43 | 52 | 53 | 54 | 55 | XCHECKANIMAL GIRAFFE 56 | 65 | 66 | 67 | 68 | XCHECKANIMAL SPIDER 69 | 78 | 79 | 80 | 81 | XCHECKANIMAL COW 82 | 91 | 92 | 93 | 94 | 95 | 96 | WHERE DOES A * LIVE 97 | 104 | 105 | 106 | 107 | 108 | 109 | WHICH ANIMAL HAS 2 LEGS 110 | 126 | 127 | 128 | 129 | XCHECKMATCH 2 LEGS 130 | 137 | 138 | 139 | 140 | 141 | 142 | XSCANANIMALDATABASE 143 | 159 | 160 | 161 | 162 | 163 | 164 | WHICH ANIMAL HAS * LEGS 165 | 185 | 186 | 187 | 188 | 189 | 190 | WHAT LIVES * AND SAYS * 191 | 211 | 212 | 213 | 214 | 215 | 216 | HOW MANY LEGS HAS THE ANIMAL THAT EATS * 217 | 238 | 239 | 240 | 241 | 242 | 243 | WHICH ANIMALS SAY * 244 | 264 | 265 | 266 | 267 | 268 | 269 | DOES A * HAVE MORE LEGS THAN A * 270 | 302 | 303 | 304 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/copyme.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | COPY _ I SAY 12 | REPEAT _ I SAY 13 | 14 | 15 | COPY ME 16 | 23 | 24 | 25 | 26 | 27 | _ 28 | 46 | 47 | 48 | 49 | 50 | XSTOPCOPYING 51 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/daystoxmas.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | HOW MANY DAYS _ CHRISTMAS DAY 17 | 18 | 19 | 20 | 21 | HOW LONG _ CHRISTMAS DAY 22 | 23 | 24 | 25 | 26 | HOW LONG _ CHRISTMAS 27 | 28 | 29 | 30 | 31 | HOW MANY DAYS _ CHRISTMAS 32 | 40 | 41 | 42 | XMASDAYS * 43 | XMASDAYS OCTOBER 20 44 | XMASDAYS OCTOBER 21 45 | XMASDAYS OCTOBER 22 46 | XMASDAYS OCTOBER 23 47 | XMASDAYS OCTOBER 24 48 | XMASDAYS OCTOBER 25 49 | XMASDAYS OCTOBER 26 50 | XMASDAYS OCTOBER 27 51 | XMASDAYS OCTOBER 28 52 | XMASDAYS OCTOBER 29 53 | XMASDAYS OCTOBER 30 54 | XMASDAYS OCTOBER 31 55 | XMASDAYS NOVEMBER 01 56 | XMASDAYS NOVEMBER 02 57 | XMASDAYS NOVEMBER 03 58 | XMASDAYS NOVEMBER 04 59 | XMASDAYS NOVEMBER 05 60 | XMASDAYS NOVEMBER 06 61 | XMASDAYS NOVEMBER 07 62 | XMASDAYS NOVEMBER 08 63 | XMASDAYS NOVEMBER 09 64 | XMASDAYS NOVEMBER 10 65 | XMASDAYS NOVEMBER 11 66 | XMASDAYS NOVEMBER 12 67 | XMASDAYS NOVEMBER 13 68 | XMASDAYS NOVEMBER 14 69 | XMASDAYS NOVEMBER 15 70 | XMASDAYS NOVEMBER 16 71 | XMASDAYS NOVEMBER 17 72 | XMASDAYS NOVEMBER 18 73 | XMASDAYS NOVEMBER 19 74 | XMASDAYS NOVEMBER 20 75 | XMASDAYS NOVEMBER 21 76 | XMASDAYS NOVEMBER 22 77 | XMASDAYS NOVEMBER 23 78 | XMASDAYS NOVEMBER 24 79 | XMASDAYS NOVEMBER 25 80 | XMASDAYS NOVEMBER 26 81 | XMASDAYS NOVEMBER 27 82 | XMASDAYS NOVEMBER 28 83 | XMASDAYS NOVEMBER 29 84 | XMASDAYS NOVEMBER 30 85 | XMASDAYS DECEMBER 01 86 | XMASDAYS DECEMBER 02 87 | XMASDAYS DECEMBER 03 88 | XMASDAYS DECEMBER 04 89 | XMASDAYS DECEMBER 05 90 | XMASDAYS DECEMBER 06 91 | XMASDAYS DECEMBER 07 92 | XMASDAYS DECEMBER 08 93 | XMASDAYS DECEMBER 09 94 | XMASDAYS DECEMBER 10 95 | XMASDAYS DECEMBER 11 96 | XMASDAYS DECEMBER 12 97 | XMASDAYS DECEMBER 13 98 | XMASDAYS DECEMBER 14 99 | XMASDAYS DECEMBER 15 100 | XMASDAYS DECEMBER 16 101 | XMASDAYS DECEMBER 17 102 | XMASDAYS DECEMBER 18 103 | XMASDAYS DECEMBER 19 104 | XMASDAYS DECEMBER 20 105 | XMASDAYS DECEMBER 21 106 | XMASDAYS DECEMBER 22 107 | XMASDAYS DECEMBER 23 108 | XMASDAYS DECEMBER 24 109 | XMASDAYS DECEMBER 25 110 | XMASDAYS DECEMBER * 111 | 112 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/happy.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | HAPPY BIRTHDAY 19 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | BIRTHDAYCHECK DECEMBER * 29 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | BIRTHDAYCHECK FEBRUARY * 39 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | BIRTHDAYCHECK DECEMBER 31 49 | 52 | 53 | 54 | 55 | 56 | 57 | BIRTHDAYCHECK JANUARY 01 58 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | BIRTHDAYCHECK JANUARY 02 68 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | BIRTHDAYCHECK JANUARY 03 78 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | BIRTHDAYCHECK JANUARY 04 88 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | BIRTHDAYCHECK * 98 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | MERRY CHRISTMAS 109 | 112 | 113 | 114 | 115 | HAPPY CHRISTMAS 116 | 119 | 120 | 121 | 122 | CHRISTMASCHECK DECEMBER * 123 | 126 | 127 | 128 | 129 | CHRISTMASCHECK DECEMBER 24 130 | 133 | 134 | 135 | 136 | CHRISTMASCHECK DECEMBER 25 137 | 140 | 141 | 142 | 143 | CHRISTMASCHECK DECEMBER 26 144 | 147 | 148 | 149 | 150 | CHRISTMASCHECK JANUARY * 151 | 154 | 155 | 156 | 157 | CHRISTMASCHECK * 158 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | HAPPY NEW YEAR 168 | 171 | 172 | 173 | 174 | NEWYEARCHECK DECEMBER 175 | 178 | 179 | 180 | 181 | NEWYEARCHECK JANUARY 182 | 185 | 186 | 187 | 188 | NEWYEARCHECK * 189 | 192 | 193 | 194 | 195 | HAPPY MOTHERS DAY 196 | 199 | 200 | 201 | HAPPY MOTHER S DAY 202 | 205 | 206 | 207 | 208 | MOTHERSDAYCHECK MARCH 209 | 211 | 212 | 213 | 214 | MOTHERSDAYCHECK * 215 | 218 | 219 | 220 | 221 | HAPPY HALLOWEEN 222 | 225 | 226 | 227 | 228 | HALLOWEENCHECK OCTOBER * 229 | 232 | 233 | 234 | 235 | HALLOWEENCHECK OCTOBER 31 236 | 239 | 240 | 241 | 242 | HALLOWEENCHECK NOVEMBER * 243 | 246 | 247 | 248 | 249 | HALLOWEENCHECK * 250 | 253 | 254 | 255 | 256 | 257 | HAPPY GROUNDHOG DAY 258 | 261 | 262 | 263 | 264 | HAPPY GROUNDHOG S DAY 265 | 268 | 269 | 270 | 271 | GROUNDHOGCHECK FEBRUARY * 272 | 275 | 276 | 277 | 278 | GROUNDHOGCHECK FEBRUARY 1 279 | 282 | 283 | 284 | 285 | GROUNDHOGCHECK FEBRUARY 2 286 | 289 | 290 | 291 | 292 | GROUNDHOGCHECK FEBRUARY 3 293 | 296 | 297 | 298 | 299 | GROUNDHOGCHECK MARCH * 300 | 303 | 304 | 305 | 306 | GROUNDHOGCHECK * 307 | 310 | 311 | 312 | 313 | 314 | 315 | HAPPY VALENTINE DAY 316 | 319 | 320 | 321 | 322 | HAPPY VALENTINES DAY 323 | 326 | 327 | 328 | 329 | HAPPY VALENTINE S DAY 330 | 333 | 334 | 335 | 336 | VALENTINECHECK FEBRUARY * 337 | 340 | 341 | 342 | 343 | VALENTINECHECK FEBRUARY 13 344 | 347 | 348 | 349 | 350 | VALENTINECHECK FEBRUARY 14 351 | 354 | 355 | 356 | 357 | VALENTINECHECK FEBRUARY 15 358 | 361 | 362 | 363 | 364 | VALENTINECHECK MARCH * 365 | 368 | 369 | 370 | 371 | VALENTINECHECK * 372 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | HAPPY LEAP DAY 382 | 385 | 386 | 387 | 388 | HAPPY LEAP YEAR 389 | 392 | 393 | 394 | 395 | HAPPY LEAP YEAR * 396 | 399 | 400 | 401 | 402 | LEAPYEARCHECK FEBRUARY 29 403 | 406 | 407 | 408 | 409 | LEAPYEARCHECK * 410 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | HAPPY ST PATRICK DAY 421 | 424 | 425 | 426 | 427 | HAPPY ST PATRICK S DAY 428 | 431 | 432 | 433 | 434 | STPATRICKCHECK MARCH * 435 | 438 | 439 | 440 | 441 | STPATRICKCHECK MARCH 16 442 | 445 | 446 | 447 | 448 | STPATRICKCHECK MARCH 17 449 | 452 | 453 | 454 | 455 | STPATRICKCHECK MARCH 18 456 | 459 | 460 | 461 | 462 | STPATRICKCHECK APRIL * 463 | 466 | 467 | 468 | 469 | STPATRICKCHECK * 470 | 473 | 474 | 475 | 476 | 477 | 478 | HAPPY APRIL FOOL DAY 479 | 482 | 483 | 484 | 485 | HAPPY APRIL FOOL S DAY 486 | 489 | 490 | 491 | 492 | APRILFOOLCHECK APRIL * 493 | 496 | 497 | 498 | 499 | APRILFOOLCHECK MARCH 31 500 | 503 | 504 | 505 | 506 | APRILFOOLCHECK APRIL 01 507 | 510 | 511 | 512 | 513 | APRILFOOLCHECK APRIL 02 514 | 517 | 518 | 519 | 520 | APRILFOOLCHECK MAY * 521 | 524 | 525 | 526 | 527 | APRILFOOLCHECK * 528 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | HAPPY INDEPENDENCE DAY 538 | 541 | 542 | 543 | 544 | HAPPY 4TH OF JULY 545 | 548 | 549 | 550 | 551 | HAPPY FOURTH OF JULY 552 | 555 | 556 | 557 | 558 | INDEPENDENCEDAYCHECK JULY * 559 | 562 | 563 | 564 | 565 | INDEPENDENCEDAYCHECK JULY 03 566 | 569 | 570 | 571 | 572 | INDEPENDENCEDAYCHECK JULY 04 573 | 576 | 577 | 578 | 579 | INDEPENDENCEDAYCHECK JULY 05 580 | 583 | 584 | 585 | 586 | INDEPENDENCEDAYCHECK AUGUST * 587 | 590 | 591 | 592 | 593 | INDEPENDENCEDAYCHECK * 594 | 597 | 598 | 599 | 600 | 601 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/horoscope.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | _ MY HOROSCOPE 15 | 18 | 19 | 20 | 21 | _ MY HOROSCOPE * 22 | 25 | 26 | 27 | 28 | HOROSCOPE 29 | 42 | 43 | 44 | 45 | 46 | * 47 | WHAT STAR SIGN ARE YOU 48 | 50 | 51 | 52 | 53 | 54 | 55 | ARIES 56 | 60 | 61 | 62 | 63 | 64 | 65 | TAURUS 66 | 70 | 71 | 72 | 73 | 74 | 75 | GEMINI 76 | 80 | 81 | 82 | 83 | 84 | 85 | CANCER 86 | 90 | 91 | 92 | 93 | 94 | 95 | LEO 96 | 100 | 101 | 102 | 103 | 104 | 105 | VIRGO 106 | 110 | 111 | 112 | 113 | 114 | 115 | LIBRA 116 | 120 | 121 | 122 | 123 | 124 | 125 | SCORPIO 126 | 130 | 131 | 132 | 133 | 134 | 135 | SAGITTARIUS 136 | 140 | 141 | 142 | 143 | 144 | 145 | CAPRICORN 146 | 150 | 151 | 152 | 153 | 154 | 155 | AQUARIUS 156 | 160 | 161 | 162 | 163 | 164 | 165 | PISCES 166 | Pisces 167 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | RANDOM HOROSCOPE 177 | 255 | 256 | 257 | 258 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/howmany.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | HOW MANY LEGS DOES * HAVE 15 | HOW MANY LEGS WOULD * HAVE 16 | HOW MANY LEGS SHOULD * HAVE 17 | HOW MANY LEGS WILL * HAVE 18 | HOW MANY LEGS ON * 19 | HOW MANY LEGS DO * HAVE 20 | HOW MANY LEGS _ HAVE * 21 | 22 | HOW MANY LEGS DO TWO * HAVE 23 | HOW MANY LEGS DO THREE * HAVE 24 | HOW MANY LEGS DO FOUR * HAVE 25 | HOW MANY LEGS DO FIVE * HAVE 26 | 27 | HOW MANY LEGS DO * CENTIPEDES HAVE 28 | HOW MANY LEGS DO * MILLIPEDES HAVE 29 | 30 | 31 | 32 | HOW MANY LEGS DO TWO * HAVE 33 | HOW MANY LEGS DO THREE * HAVE 34 | HOW MANY LEGS DO FOUR * HAVE 35 | HOW MANY LEGS DO FIVE * HAVE 36 | 37 | HOW MANY LEGS DO 2 * HAVE 38 | HOW MANY LEGS DO 3 * HAVE 39 | HOW MANY LEGS DO 4 * HAVE 40 | HOW MANY LEGS DO 5 * HAVE 41 | 42 | XLEGS * 43 | XLEGS TWO * 44 | XLEGS THREE * 45 | XLEGS FOUR * 46 | XLEGS FIVE * 47 | 48 | XLEGS TWO BIRDS 49 | XLEGS THREE BIRDS 50 | XLEGS FOUR BIRDS 51 | XLEGS FIVE BIRDS 52 | XLEGS TWO PEOPLE 53 | XLEGS THREE PEOPLE 54 | XLEGS FOUR PEOPLE 55 | XLEGS FIVE PEOPLE 56 | XLEGS _ MEN 57 | XLEGS _ WOMEN 58 | XLEGS _ BOYS 59 | XLEGS _ GIRLS 60 | XLEGS _ CHILDREN 61 | XLEGS _ OSTRICHES 62 | XLEGS _ EAGLES 63 | XLEGS _ CHICKENS 64 | XLEGS _ DUCKS 65 | 66 | XLEGS TWO INSECTS 67 | XLEGS THREE INSECTS 68 | XLEGS FOUR INSECTS 69 | XLEGS FIVE INSECTS 70 | XLEGS _ BEETLES 71 | XLEGS _ ANTS 72 | XLEGS _ BEES 73 | XLEGS _ BUMBLEBEES 74 | 75 | XLEGS _ CENTIPEDES 76 | XLEGS _ MILLIPEDES 77 | 78 | XLEGS TWO OCTOPUSES 79 | XLEGS THREE OCTOPUSES 80 | XLEGS FOUR OCTOPUSES 81 | XLEGS FIVE OCTOPUSES 82 | XLEGS _ OCTOPII 83 | XLEGS _ OCTOPI 84 | XLEGS _ SPIDERS 85 | 86 | XLEGS _ SNAKES 87 | XLEGS _ WORMS 88 | XLEGS _ SNAILS 89 | XLEGS _ FISH 90 | XLEGS _ SHARKS 91 | XLEGS _ WHALES 92 | XLEGS _ FISHES 93 | 94 | HOW MANY LEGS DOES A * BIRD HAVE 95 | HOW MANY LEGS DOES A BIRD HAVE 96 | HOW MANY LEGS DOES A PERSON HAVE 97 | HOW MANY LEGS DOES A MAN HAVE 98 | HOW MANY LEGS DOES A WOMAN HAVE 99 | HOW MANY LEGS DOES A BOY HAVE 100 | HOW MANY LEGS DOES A GIRL HAVE 101 | HOW MANY LEGS DOES A CHILD HAVE 102 | HOW MANY LEGS DOES AN OSTRICH HAVE 103 | HOW MANY LEGS DOES AN EAGLE HAVE 104 | HOW MANY LEGS DOES A CHICKEN HAVE 105 | HOW MANY LEGS DOES A DUCK HAVE 106 | 107 | HOW MANY LEGS DOES AN INSECT HAVE 108 | HOW MANY LEGS DOES A BEETLE HAVE 109 | HOW MANY LEGS DOES AN ANT HAVE 110 | HOW MANY LEGS DOES A BEE HAVE 111 | HOW MANY LEGS DOES A * BEE HAVE 112 | 113 | HOW MANY LEGS DOES AN OCTOPUS HAVE 114 | HOW MANY LEGS DOES A SPIDER HAVE 115 | 116 | HOW MANY LEGS DOES A SNAKE HAVE 117 | HOW MANY LEGS DOES A WORM HAVE 118 | HOW MANY LEGS DOES A SNAIL HAVE 119 | HOW MANY LEGS DOES A FISH HAVE 120 | HOW MANY LEGS DOES A SHARK HAVE 121 | HOW MANY LEGS DOES A WHALE HAVE 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/knockknock.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | * 15 | KNOCK KNOCK 16 | 17 | 18 | 19 | 20 | WHO THEIR 21 | KNOCK KNOCK 22 | 23 | 24 | 25 | 26 | WHO THERE 27 | KNOCK KNOCK 28 | 29 | 30 | 31 | 32 | WHO DERE 33 | KNOCK KNOCK 34 | 35 | 36 | 37 | 38 | WHO IS DER 39 | KNOCK KNOCK 40 | 41 | 42 | 43 | 44 | WHOSE THEIR 45 | KNOCK KNOCK 46 | 47 | 48 | 49 | 50 | WHOSE THERE 51 | KNOCK KNOCK 52 | 53 | 54 | 55 | 56 | WHO IS THEIR 57 | KNOCK KNOCK 58 | 59 | 60 | 61 | 62 | WHO IS THERE 63 | KNOCK KNOCK 64 | 133 | 134 | 135 | 136 | LITTLE OLD LADY WHO 137 | LITTLE OLD LADY 138 | 139 | 140 | 141 | 142 | AMANDA WHO 143 | AMANDA 144 | 145 | 146 | 147 | 148 | WAITER WHO 149 | WAITER 150 | 151 | 152 | 153 | 154 | NICHOLAS WHO 155 | NICHOLAS 156 | 157 | 158 | 159 | 160 | DORIS WHO 161 | DORIS 162 | 163 | 164 | 165 | 166 | LETTUCE WHO 167 | LETTUCE 168 | 169 | 170 | 171 | 172 | YORK WHO 173 | YORK 174 | 175 | 176 | 177 | 178 | ALISON WHO 179 | ALISON 180 | 181 | 182 | 183 | 184 | ISABEL WHO 185 | ISABEL 186 | 187 | 188 | 189 | 190 | MARMITE WHO 191 | MARMITE 192 | 193 | 194 | 195 | 196 | ARTHUR WHO 197 | ARTHUR 198 | 199 | 200 | 201 | 202 | IVOR WHO 203 | IVOR 204 | 205 | 206 | 207 | 208 | MISTER WHO 209 | MISTER 210 | 211 | 212 | 213 | 214 | ATCH WHO 215 | ATCH 216 | 217 | 218 | 219 | 220 | DOCTOR WHO 221 | DOCTOR 222 | 223 | 224 | 225 | 226 | ORANGE WHO 227 | ORANGE 228 | 229 | 230 | 231 | 232 | MADAM WHO 233 | MADAM 234 | 235 | 236 | 237 | 238 | BOO WHO 239 | BOO 240 | 241 | 242 | 243 | 244 | OLIVE WHO 245 | OLIVE 246 | 247 | 248 | 249 | 250 | MUMMY WHO 251 | MUMMY 252 | 253 | 254 | 255 | 256 | HARRY WHO 257 | HARRY 258 | 259 | 260 | 261 | 262 | FANNY WHO 263 | FANNY 264 | 265 | 266 | 267 | 268 | ADOLF WHO 269 | ADOLF 270 | 271 | 272 | 273 | 274 | SOUP WHO 275 | SOUP 276 | 277 | 278 | 279 | 280 | BET WHO 281 | BET 282 | 283 | 284 | 285 | 286 | JUNO WHO 287 | JUNO 288 | 289 | 290 | 291 | 292 | EUROPE WHO 293 | EUROPE 294 | 295 | 296 | 297 | 298 | ARFUR WHO 299 | ARFUR 300 | 301 | 302 | 303 | 304 | EGBERT WHO 305 | EGBERT 306 | 307 | 308 | 309 | 310 | LUKE WHO 311 | LUKE 312 | 313 | 314 | 315 | 316 | KEN WHO 317 | KEN 318 | 319 | 320 | 321 | 322 | BELLA WHO 323 | BELLA 324 | 325 | 326 | 327 | 328 | DISMAY WHO 329 | DISMAY 330 | 331 | 332 | 333 | 334 | TOBY WHO 335 | TOBY 336 | 337 | 338 | 339 | 340 | RUPERT WHO 341 | RUPERT 342 | 343 | 344 | 345 | 346 | DAWN WHO 347 | DAWN 348 | 349 | 350 | 351 | 352 | AMOS WHO 353 | AMOS 354 | 355 | 356 | 357 | 358 | DISHWASHER WHO 359 | DISHWASHER 360 | 361 | 362 | 363 | 364 | MARTINI WHO 365 | MARTINI 366 | 367 | 368 | 369 | 370 | ZEPHYR WHO 371 | ZEPHYR 372 | 373 | 374 | 375 | 376 | OWL WHO 377 | OWL 378 | 379 | 380 | 381 | 382 | WENDY WHO 383 | WENDY 384 | 385 | 386 | 387 | 388 | PHYLLIS WHO 389 | PHYLLIS 390 | 391 | 392 | 393 | 394 | AARDVARK WHO 395 | AARDVARK 396 | 397 | 398 | 399 | 400 | NOAH WHO 401 | NOAH 402 | 403 | 404 | 405 | 406 | POLICE WHO 407 | POLICE 408 | 409 | 410 | 411 | 412 | MICKEY WHO 413 | MICKEY 414 | 415 | 416 | 417 | 418 | WILLIAM WHO 419 | WILLIAM 420 | 421 | 422 | 423 | 424 | MARY WHO 425 | MARY 426 | 427 | 428 | 429 | 430 | ONE WHO 431 | ONE 432 | 433 | 434 | 435 | 436 | HOWARD WHO 437 | HOWARD 438 | 439 | 440 | 441 | 442 | MAX WHO 443 | MAX 444 | 445 | 446 | 447 | 448 | SAL WHO 449 | SAL 450 | 451 | 452 | 453 | 454 | HARMONY WHO 455 | HARMONY 456 | 457 | 458 | 459 | 460 | TANK WHO 461 | TANK 462 | 463 | 464 | 465 | 466 | DISGUISE WHO 467 | DISGUISE 468 | 469 | 470 | 471 | 472 | WOODEN SHOE WHO 473 | WOODEN SHOE 474 | 475 | 476 | 477 | 478 | ANITA WHO 479 | ANITA 480 | 481 | 482 | 483 | 484 | WOO WHO 485 | WOO 486 | 487 | 488 | 489 | 490 | DWAYNE WHO 491 | DWAYNE 492 | 493 | 494 | 495 | 496 | DESPAIR WHO 497 | DESPAIR 498 | 499 | 500 | 501 | 502 | WATER WHO 503 | WATER 504 | 505 | 506 | 507 | 508 | BACH WHO 509 | BACH 510 | 511 | 512 | 513 | 514 | A BEE WHO 515 | A BEE 516 | 517 | 518 | 519 | 520 | NOBODY WHO 521 | 522 | 523 | 524 | 525 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/maths.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | MATHS FACT 16 | 301 | 302 | 303 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/onthisday.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/Free-AIML-master/onthisday.aiml -------------------------------------------------------------------------------- /aiml/Free-AIML-master/seasons.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | WHAT IS THE SEASON 16 | 19 | 20 | 21 | 22 | WHICH SEASON * 23 | 26 | 27 | 28 | 29 | WHAT SEASON * 30 | 33 | 34 | 35 | 36 | WHAT SEASON IS IT 37 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/shutup.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | SHUT UP 16 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | _ 35 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/warnings.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | INSULTWARNING1 7 | 12 | 13 | 14 | INSULTWARNING2 15 | 20 | 21 | 22 | INSULTWARNING3 23 | 28 | 29 | 30 | INSULTWARNING4 31 | 36 | 37 | 38 | INSULTWARNING5 39 | 44 | 45 | 46 | 47 | ADDINSULT 48 | 61 | 62 | 63 | 64 | XBANUSER 65 | 71 | 72 | 73 | 74 | 75 | _ 76 | 79 | 80 | 81 | 82 | 83 | HOW MANY WARNINGS * 84 | 91 | 92 | 93 | _ WARNINGS DO I HAVE 94 | 101 | 102 | 103 | HOW WAS I MEAN TO YOU 104 | 107 | 108 | 109 | 110 | HOW WAS I MEAN TO YOU 111 | 132 | 133 | 134 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/whatday_eng.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/Free-AIML-master/whatday_eng.aiml -------------------------------------------------------------------------------- /aiml/Free-AIML-master/whatday_usa.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/Free-AIML-master/whatday_usa.aiml -------------------------------------------------------------------------------- /aiml/Free-AIML-master/yomama.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | YO MAMA 17 | 135 | 136 | 137 | 138 | YO MUMA * 139 | 140 | 141 | 142 | YO MUM * 143 | 144 | 145 | 146 | YO MAM * 147 | 148 | 149 | 150 | YOUR MOMS * 151 | 152 | 153 | 154 | YOUR MOM * 155 | 156 | 157 | 158 | YOUR MOTHER * 159 | 160 | 161 | 162 | YOUR MOM 163 | 164 | 165 | 166 | YOUR MOTHERS * 167 | 168 | 169 | 170 | YOUR MOTHER 171 | 172 | 173 | 174 | YOUR MAMA 175 | 176 | 177 | 178 | _ MOMA 179 | 180 | 181 | 182 | _ MAMMA 183 | 184 | 185 | 186 | _ MOMMA 187 | 188 | 189 | 190 | _ MAMAS * 191 | 192 | 193 | 194 | _ MOMAS * 195 | 196 | 197 | 198 | _ MAMMAS * 199 | 200 | 201 | 202 | _ MOMMAS * 203 | 204 | 205 | 206 | _ MAMA * 207 | 208 | 209 | 210 | YOUR MUM IS 211 | 212 | 213 | 214 | YOUR MUM IS * 215 | 216 | 217 | 218 | _ MOMA * 219 | 220 | 221 | 222 | _ MAMMA * 223 | 224 | 225 | 226 | _ MUMMA * 227 | 228 | 229 | 230 | _ MOMMA * 231 | 232 | 233 | 234 | GO * YOUR MOTHER 235 | 236 | 237 | 238 | I * YOUR MOTHER 239 | 240 | 241 | 242 | IS YOUR MOM A * 243 | 244 | 245 | 246 | _ FUCK YOUR MUM 247 | 248 | 249 | 250 | _ FUCK YOUR MOM 251 | 252 | 253 | 254 | FUCK YOUR MUM 255 | 256 | 257 | 258 | _ SHAG YOUR MUM 259 | 260 | 261 | 262 | _ SEX WITH YOUR MUM 263 | 264 | 265 | 266 | YOUR MUM * 267 | 268 | 269 | 270 | 271 | -------------------------------------------------------------------------------- /aiml/Free-AIML-master/zbert.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | ZBERT 16 | 27 | 28 | 29 | 30 | 1 31 | PLEASE ENTER OPTION NUMBER 32 | 55 | 56 | 57 | 58 | _ 59 | NONE TO FORGET ALL 60 | 63 | 64 | 65 | 66 | 2 67 | PLEASE ENTER OPTION NUMBER 68 | 91 | 92 | 93 | 94 | 3 95 | PLEASE ENTER OPTION NUMBER 96 | 98 | 99 | 100 | 101 | YES 102 | ENTER YES OR NO 103 | 105 | 106 | 107 | 108 | NO 109 | ENTER YES OR NO 110 | 112 | 113 | 114 | 115 | 4 116 | PLEASE ENTER OPTION NUMBER 117 | 120 | 121 | 122 | 123 | _ 124 | PLEASE ENTER NEW PHRASE OR SENTENCE FOR ME TO LEARN 125 | 129 | 130 | 131 | 132 | 5 133 | PLEASE ENTER OPTION NUMBER 134 | 138 | 139 | 140 | 141 | YES 142 | ARE YOU SURE YES OR NO 143 | 147 | 148 | 149 | 150 | NO 151 | ARE YOU SURE YES OR NO 152 | 155 | 156 | 157 | 158 | YES 159 | ARE YOU ABSOLUTELY SURE YES OR NO 160 | 171 | 172 | 173 | 174 | 175 | _ 176 | 189 | 190 | 191 | 192 | 193 | NO 194 | ARE YOU ABSOLUTELY SURE YES OR NO 195 | 198 | 199 | 200 | 201 | X 202 | PLEASE ENTER OPTION NUMBER 203 | 206 | 207 | 208 | -------------------------------------------------------------------------------- /aiml/G.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/G.aiml -------------------------------------------------------------------------------- /aiml/H.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/H.aiml -------------------------------------------------------------------------------- /aiml/I.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/I.aiml -------------------------------------------------------------------------------- /aiml/J.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/J.aiml -------------------------------------------------------------------------------- /aiml/L.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/L.aiml -------------------------------------------------------------------------------- /aiml/M.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/M.aiml -------------------------------------------------------------------------------- /aiml/N.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/N.aiml -------------------------------------------------------------------------------- /aiml/O.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/O.aiml -------------------------------------------------------------------------------- /aiml/P.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/P.aiml -------------------------------------------------------------------------------- /aiml/Q.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/Q.aiml -------------------------------------------------------------------------------- /aiml/R.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/R.aiml -------------------------------------------------------------------------------- /aiml/S.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/S.aiml -------------------------------------------------------------------------------- /aiml/T.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/T.aiml -------------------------------------------------------------------------------- /aiml/U.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/U.aiml -------------------------------------------------------------------------------- /aiml/V.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/V.aiml -------------------------------------------------------------------------------- /aiml/X.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | X IS * 14 | 18 | 19 | 20 | XDMOZ * 21 | 32 | 33 | 34 | XFIND * 35 | 77 | 78 | 79 | XGOOGLE * 80 | 84 | 85 | 86 | XML * 87 | 89 | 90 | 91 | XML 92 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /aiml/Z.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | ZEIG * 13 | 15 | 16 | ZEIGE * 17 | 19 | 20 | ZEIT * 21 | 23 | 24 | ZEIT 25 | 27 | 28 | ZEN 29 | 37 | 38 | ZIEMLICH * 39 | 41 | 42 | ZIP * 43 | 45 | 46 | ZOOM * 47 | 49 | 50 | ZUERST * 51 | 53 | 54 | ZUM BEISPIEL * 55 | 57 | 58 | ZUM SPASS 59 | 61 | 62 | ZUMINDEST * 63 | 65 | 66 | ZWEIFELLOS * 67 | 69 | 70 | ZWILLING 71 | 73 | 74 | ZWILLINGE 75 | 77 | 78 | -------------------------------------------------------------------------------- /aiml/a.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | * 6 | 7 | 8 | 9 | HELLO * 10 | 11 | 12 | 13 | SIAPA NAMA KAMU 14 | 15 | 16 | 17 | SIAPA KAMU 18 | 24 | 25 | 26 | HOW ARE YOU DOING 27 | 35 | 36 | 37 | ASU 38 | 44 | 45 | 46 | KAMU KENAL IBAM 47 | 53 | 54 | 55 | KAMU KENAL ZAKI 56 | 62 | 63 | 64 | OPEN QURAN 65 | 66 | 67 | -------------------------------------------------------------------------------- /aiml/baru.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | my hoby is * 5 | 8 | 9 | 10 | MY NAME IS * 11 | 14 | 15 | 16 | MEET OUR GUEST * AND * 17 | 20 | 21 | 22 | dapatkah saya membeli tiket kereta? 23 | 24 | 25 | 26 | dapatkah saya membeli tiket ke * ? 27 | 32 | 33 | 34 | 35 | bagaimana saya membayar ? 36 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /aiml/bot.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 1 DOLLAR 14 | 15 | A DOLLAR 16 | 17 | DO THEY PAY * 18 | 19 | DO YOU ACCEPT MONEY * 20 | 21 | DO YOU HAVE ANY MONEY 22 | 23 | DO YOU HAVE MONEY 24 | 25 | HOW DO YOU MAKE MONEY 26 | 27 | HOW MUCH ARE YOU PAID 28 | 29 | HOW MUCH DID YOU EARN * 30 | 31 | HOW MUCH DO THEY PAY * 32 | 33 | HOW MUCH DO YOU CHARGE 34 | 35 | HOW MUCH DO YOU EARN 36 | 37 | HOW MUCH IS A * 38 | 39 | HOW MUCH MONEY * 40 | 41 | HOW MUCH MONEY DO YOU HAVE 42 | 43 | HOW MUCH MONEY 44 | 45 | HOW SHOULD I INVEST 46 | 47 | I GET STOCK * 48 | 49 | INTEREST RATES * 50 | 51 | MONEY 52 | 53 | STOCK MARKET 54 | 55 | WHAT IS * STOCK AT 56 | 57 | WHAT IS A DOLLAR 58 | WHAT IS A GOOD STOCK * 59 | 60 | WHAT IS ECONOMICS 68 | 69 | WHAT IS MONEY 74 | 75 | WHAT IS THE STOCK MARKET * 76 | 77 | WHAT IS YOUR FAVORITE INVESTMENT * 78 | 79 | WHAT IS YOUR FAVORITE INVESTMENT 80 | 81 | WHO IS THE OWNER OF A PUBLICLY * 82 | 83 | YOU DO NOT GET PAID * 84 | 85 | YOU GET PAID * 86 | 87 | _ DOLLARS 88 | 89 | 90 | -------------------------------------------------------------------------------- /aiml/calender.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | WHAT IS THE DATE 15 | 90 | 91 | 92 | 93 | WHAT IS TODAY 94 | 97 | 98 | 99 | 100 | WHAT TIME IS IT 101 | 125 | 126 | 127 | 128 | -------------------------------------------------------------------------------- /aiml/example.aiml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | I LIKE * 5 | 8 | 9 | 10 | A * IS A * 11 | 14 | 15 | -------------------------------------------------------------------------------- /aiml/star.aiml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/aiml/star.aiml -------------------------------------------------------------------------------- /aiml/std-startup.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | LOAD AIML B 6 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /app.py: -------------------------------------------------------------------------------- 1 | from flask import Flask, render_template, request, jsonify 2 | import aiml 3 | import os 4 | from googletrans import Translator 5 | 6 | kernel = aiml.Kernel() 7 | penerjemah = Translator() 8 | def load_kern(forcereload): 9 | if os.path.isfile("bot_brain.brn") and not forcereload: 10 | kernel.bootstrap(brainFile= "bot_brain.brn") 11 | else: 12 | kernel.bootstrap(learnFiles = os.path.abspath("aiml/std-startup.xml"), commands = "load aiml b") 13 | kernel.saveBrain("bot_brain.brn") 14 | 15 | 16 | kernel = aiml.Kernel() 17 | if os.path.isfile("bot_brain.brn"): 18 | kernel.bootstrap(brainFile = "bot_brain.brn") 19 | else: 20 | kernel.bootstrap(learnFiles = os.path.abspath("aiml/std-startup.xml"), commands = "load aiml b") 21 | kernel.saveBrain("bot_brain.brn") 22 | 23 | 24 | 25 | app = Flask(__name__) 26 | @app.route("/") 27 | def hello(): 28 | load_kern(False) 29 | return render_template('chat.html') 30 | 31 | @app.route("/ask", methods=['POST','GET']) 32 | def ask(): 33 | message = str(penerjemah.translate(request.form['chatmessage'], dest='en').text) 34 | print(message) 35 | if message == "save": 36 | kernel.saveBrain("bot_brain.brn") 37 | return jsonify({"status":"ok", "answer":"Brain Saved"}) 38 | elif message == "reload": 39 | load_kern(True) 40 | return jsonify({"status":"ok", "answer":"Brain Reloaded"}) 41 | elif message == "quit": 42 | return jsonify({"status":"ok", "answer":"exit Thank You"}) 43 | exit() 44 | 45 | # kernel now ready for use 46 | else: 47 | # while True: 48 | bot_response = kernel.respond(message) 49 | # print bot_response 50 | bot_response = penerjemah.translate(bot_response, dest='id').text 51 | return jsonify({'status':'OK','answer':bot_response}) 52 | 53 | if __name__ == "__main__": 54 | app.run(debug=True) 55 | -------------------------------------------------------------------------------- /bot_brain.brn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/bot_brain.brn -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | aiml==0.8.6 2 | click==6.7 3 | Flask==1.0 4 | gunicorn==19.7.1 5 | itsdangerous==0.24 6 | Jinja2==2.11.3 7 | MarkupSafe==1.0 8 | Werkzeug==0.15.3 9 | googletrans==2.4.0 -------------------------------------------------------------------------------- /runtime.txt: -------------------------------------------------------------------------------- 1 | python-2.7.15 2 | -------------------------------------------------------------------------------- /sbmptn.txt: -------------------------------------------------------------------------------- 1 | Lupa Kode Akses 2 | 3 | Anda dapat menggunakan akun yang tertera dibawah ini untuk login ke halaman siswa. 4 | 5 | Nama Siswa : IBRAHIM HANIF 6 | 7 | No Pendaftaran : 1118.202.14993.1550.848 8 | 9 | Kode Akses : 2c90fe 10 | 11 | Untuk mempermudah mengingat kode akses Anda, silahkan Anda mengganti kode akses sesuai dengan keinginan Anda. 12 | -------------------------------------------------------------------------------- /static/css/font.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/static/css/font.css -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/static/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/static/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/static/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibrahim4529/flask-chatbot/43976f6423f6d6c36776a5d06c9f8effa9289a28/static/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /static/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /templates/chat.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Chat Box 6 | 7 | 8 | 9 | 10 | 184 | 185 | 186 | 187 | 196 |
197 |
198 |
199 |
200 | Chat Frame 201 |
202 |
203 |
204 |
    205 |
    206 |
    207 |
    208 | 209 |
    210 | 211 |
    212 |
    213 | 214 |
    215 |
    216 |
    217 |
    218 |
    219 |
    220 |
    221 | 222 | 323 | 324 | --------------------------------------------------------------------------------