├── README.md ├── index.html ├── dimag.js ├── chehra.css └── LICENSE /README.md: -------------------------------------------------------------------------------- 1 | # Babua 2 | A WhatsApp GUI based chatbot to play with 3 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | WhatsApp 7 | 8 |
18 |
19 |
20 |

21 |
22 | 23 | 24 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /dimag.js: -------------------------------------------------------------------------------- 1 | 2 | var abc=["Laal dupatta udd gya re hawa ke jokhe se,_Mujhko Papa ne dekh liya Mara dande se😅","Bantai tera to banta hi nhi hai,_tujhpe kuch bhi jamta hi nhi hai😂","Mai har test pass krke dikhaunga chahe ye mera blood test hi kyon na ho😂","हाय नी तेरी लाल चुनरिया_पहन के लगदी तू कमाल_ओ तेरा क्या कहना_ओ तेरा क्या कहना😘","Gaadi wala aaya,_Ghar se kachra nikal!😂","Bol Bhidu kya kaam hai?","Swagat nhi kroge hamara?","Mere baare mein mat socho,_dil mein aata hoon samajh mein nhi😉","Aeyyyihhh!!! kyon thak rha hai?","Iss baar angrezi mein mujhko Barack Obama bhi fail nhi kr sakta😅","Mai to nanha sa pyaara sa bacha hoon🥺","Acha hai Bahut Acha hai!","Don't angry me!","Yeh Babu rao ka style hai!","Aree baba wrong no. hai to uthati kyon hai","Naam to kamal che...._par surname bawal che😏","Ye haath hai ya hathoda,_kido ki basti mein aa gya makoda😂","tension lene ka nahi_dene ka re😅","chalti kya nau se egyarahh😉","Mauka hai, dastoor hai ..._zakhaas raja,_zakhaas rani aur raazi ... kyun na laga de_Bollywood ki baazi","Tu Munna Bhai hoga lekin main Circuit nahi hoon ..._tu Batman hoga lekin main Birdman nahi hoon ..._tu hero hoga lekin ab main bhi hero hoon😂","Tu ladki ke peeche bhagega,_ladki paise ke peeche bhagegi ..._tu paise ke peeche bhagega,_ladki mere peeche bhagegi🤷","Oh ji jhappiyan tak te theek hai ..._par pappiyan bhi marte rhende hai mainu💁","Ye firauti ke paise hain ya_maiyyat ka chanda😂","Kaun bhauk rha hai ye badtameez😏","Kauwa kitna bhi washing machine mein nha le bagula nhi banta😂","Bhabhi hogi teri aur_shaadi hogi meri😉","Paan me pudina dekha,_naak ka nagina dekha,_chikni chameli dekhi,_chikna kamina dekha,_chaand cheater hoke cheat kiya toh,_Saare taare bole gilli gilli akha.😂","Ladki kamaal re akhiyon se goli maare😉","rehen de bette😏","rehen de chotte😏","Daya kuch to gadbad hai🤔","Daya Darwaja tod🤨","Chaand taare tod laun,_saari duniya par main chaun,_bas itna sa khwaab hai😅","Tune maari entry yaar,_dil mein baji ghanti yaar,_Tann Tann Tann😂","Gulaabi aankhein jo teri dekhi,_sharaabi ye dil ho gya😍","Tera Pyaar pyaar pyaar hukah baar🤐","Love You❤️"] 3 | var hi=["hello 😘😘🥰","hello 😅😅","hello 😆🤣😂","Hello, Tell me something about you","Hello Darling♥️","Hi 😂","Hello🤣"] 4 | var no=["no problem","Koi gal ni oye!","koi nhi","Thik hai"] 5 | var what=["Nothing🤣","Nothing","Kuch nhi😂","Kuch nhi oye!","Kya 'what' ek baar mein sunne ki aadat daal le😏"] 6 | function rand(len){ 7 | let num = Math.floor(Math.random()*len); 8 | return num; 9 | } 10 | var nme=["Pikachu(you must...","The Vinayak Pand...","🎀Miss Angelic🎀","Vιπαγακ Θπιmαηι...","Ɗeⱥᖙpͥooͣlͫツ","Anshika🎵🎶(Inac...","✨Tuktuk.💞...","Amardeep kesha..."]; 11 | var ids=[18608933,17826737,18308477,15117771,14154819,18653347,18483801,9151475]; 12 | 13 | 14 | 15 | 16 | function g(){ 17 | var list=document.getElementById("list"); 18 | var text=document.getElementById("a"); 19 | if(text.value==""||text.value==" "){ 20 | 21 | }else{ 22 | var typing=document.getElementById("typing"); 23 | typing.innerHTML='Typing...'; 24 | setTimeout(function(){ 25 | typing.innerHTML='online'; 26 | 27 | var a=document.createElement("p"); 28 | a.id="me"; 29 | a.style.marginLeft="150px"; 30 | var mess=a.textContent=text.value; 31 | mess=mess.toLowerCase(); 32 | 33 | list.appendChild(a); 34 | 35 | var b=document.createElement("p"); 36 | b.id="he"; 37 | b.style.marginLeft="0px"; 38 | 39 | if(mess==("hi") || mess.match("hello")) 40 | { 41 | b.textContent=hi[Math.floor(Math.random()*hi.length)]; 42 | } 43 | else if(mess==("Kya") || mess.match("hua")) 44 | { 45 | b.textContent="Kuch nhi😂" 46 | } 47 | else if(mess.match("1") || mess.match("0")) 48 | { 49 | b.textContent="ek do teen chaar panch cheh saat aath nau das egyaara baarrah tera" 50 | 51 | } 52 | else if(mess==("nhi") || mess.match("no")) 53 | { 54 | b.textContent=no[Math.floor(Math.random()*no.length)] 55 | } 56 | else if(mess.match("what")) 57 | { 58 | b.textContent=what[Math.floor(Math.random()*what.length)] 59 | } 60 | else if(mess.match("ok")) 61 | { 62 | b.textContent="Kya ok-okay laga rakha hai whatsapp use kr rhe uski language mein bolo. Bolo 'k'" 63 | } 64 | else if(mess.match("hm")) 65 | { 66 | b.textContent="'hmm' kya hota hai hai angrezi medium nursery pass😏" 67 | } 68 | else if(mess==("k")) 69 | { 70 | b.textContent="hmm, ab thik hai" 71 | } 72 | else if(mess.match("Created you") || mess.match("invented") || mess.match("created")) 73 | { 74 | b.textContent="Gautam Kumar" 75 | } 76 | else if(mess.match("love you") || mess.match("Love")) 77 | { 78 | b.textContent="Love you too😘" 79 | } 80 | else if(mess.match("how") || mess.match("you")) 81 | { 82 | b.textContent="Lalan top aur bhidu tum" 83 | } 84 | else if(mess.match("kya") || mess.match("kaise")) 85 | { 86 | b.textContent="Kuch nhi bacche tum nhi smjhoge" 87 | } 88 | else if(mess.match("gana") || mess.match("sing")) 89 | { 90 | b.textContent="aukat mein." 91 | } 92 | else if(mess.match("namaste") || mess.match("pranam")) 93 | { 94 | b.textContent="khush raho" 95 | } 96 | 97 | else { 98 | b.textContent=abc[Math.floor(Math.random()*abc.length)].split("_").join(" ") 99 | 100 | } 101 | list.appendChild(b); 102 | text.value=""; 103 | 104 | },2000) 105 | } 106 | } 107 | // js from web 108 | -------------------------------------------------------------------------------- /chehra.css: -------------------------------------------------------------------------------- 1 | @use postcss-nested; 2 | body { 3 | font-family: "Helvetica Neue", Helvetica, sans-serif; 4 | font-size: 20px; 5 | font-weight: normal; 6 | max-width: 450px; 7 | margin: 50px auto; 8 | display: flex; 9 | flex-direction: column; 10 | background-image:url("https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQyWHLYtktr9BmgUHHAbl-fgjt5TVGbaUaf3w&usqp=CAU");position:fixed;width:relative ; 11 | } 12 | .profile:hover { 13 | } 14 | .nav .title{ 15 | margin-left:10px; 16 | cursor:pointer; 17 | } 18 | .title p{ 19 | color:#fff; 20 | line-height:1.1em; 21 | } 22 | .icon { 23 | flex:1; 24 | text-align:right; 25 | margin-top:-65px; 26 | margin-left:223px; 27 | } 28 | .icon a{ 29 | display:inline-block; 30 | color:#fff; 31 | font-size:20px; 32 | padding:5px; 33 | margin:0 5px; 34 | } 35 | .arrow{ 36 | display:inline-block; 37 | color:#fff; 38 | font-size:24px; 39 | width:20px; 40 | cursor:pointer; 41 | } 42 | .a{ 43 | flex:1; 44 | margin-right:5px; 45 | border:none; 46 | outline:none; 47 | border-radius:40px; 48 | padding:0 20px; 49 | caret-color:var(--primary); 50 | font-size:18px; 51 | } 52 | #a{ 53 | position:fixed; 54 | bottom:25px; 55 | left:5px; 56 | width:80%; 57 | display:flex; 58 | padding:8px 10px; 59 | } 60 | 61 | #list{ 62 | padding:0 1em; 63 | height:570px; 64 | overflow:scroll; 65 | top:90px; 66 | left:0; 67 | right:0; 68 | position:fixed; 69 | } 70 | 71 | .title{ 72 | color:white; 73 | font-size:20px; 74 | text-align:left; 75 | margin-top:-55px; 76 | padding-left:79px; 77 | } 78 | #chat{ 79 | background:url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png"); 80 | z-index:2; 81 | height:50px; 82 | width:100%; 83 | margin-left:10px; 84 | margin-bottom:0; 85 | position:fixed; 86 | bottom:0; 87 | margin-top:100px; 88 | } 89 | 90 | 91 | .bton:focus{ 92 | outline:none; 93 | } 94 | #wrk{ 95 | background:url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png"); 96 | z-index:2; 97 | height:50px; 98 | width:100%; 99 | margin-left:10px; 100 | margin-bottom:0; 101 | position:fixed; 102 | bottom:0; 103 | margin-top:200px; 104 | } 105 | .online{ 106 | color:white; 107 | font-size:10px; 108 | padding-left:84px; 109 | margin-top:-35px; 110 | } 111 | .box { 112 | margin-top:-50px; 113 | background-color:#075e54; 114 | width: 1200px;; 115 | height:50px; 116 | padding:15px; 117 | } 118 | .cht{ 119 | flex:1; 120 | margin-right:5px; 121 | border:none; 122 | outline:none; 123 | border-radius:40px; 124 | padding:0 20px; 125 | caret-color:var(--primary); 126 | font-size:18px; 127 | } 128 | .avatar { 129 | height:40px; 130 | width:40px; 131 | border-radius:50%; 132 | overflow:hidden; 133 | margin-left:10px; 134 | cursor:pointer; 135 | } 136 | 137 | .nav { 138 | position:sticky; 139 | top:0; 140 | left:0; 141 | width:100%; 142 | height:56px; 143 | background:var(--primary); 144 | box-shadow:0 0px 3px 2px rgba(0,0,0,0.2); 145 | padding:0 10px; 146 | display:flex; 147 | align-items: center; 148 | z-index:9; 149 | } 150 | p { 151 | max-width: 255px; 152 | word-wrap: break-word; 153 | margin-bottom: 12px; 154 | line-height: 24px; 155 | position:relative; 156 | padding:10px 20px; 157 | border-radius:25px; 158 | 159 | &:before, &:after { 160 | content:""; 161 | position:absolute; 162 | bottom:-2px; 163 | height:20px; 164 | } 165 | } 166 | .nav .avatar{ 167 | height:40px; 168 | width:40px; 169 | border-radius:50%; 170 | overflow:hidden; 171 | margin-left:10px; 172 | cursor:pointer; 173 | } 174 | /* 175 | .me { 176 | color:white; 177 | background:#075e54; 178 | align-self:flex-end; 179 | 180 | &:before { 181 | right:-7px; 182 | border-right:20px solid #0B93F6; 183 | border-bottom-left-radius: 16px 14px; 184 | transform:translate(0, -2px); 185 | } 186 | 187 | &:after { 188 | right:-56px; 189 | width:26px; 190 | background:white; 191 | border-bottom-left-radius: 10px; 192 | transform:translate(-30px, -2px); 193 | } 194 | } 195 | .he { 196 | background:white; 197 | color:black; 198 | align-self: flex-start; 199 | 200 | &:before { 201 | left:-7px; 202 | border-left:20px solid #E5E5EA; 203 | border-bottom-right-radius: 16px 14px; 204 | transform:translate(0, -2px); 205 | } 206 | 207 | &:after { 208 | left:4px; 209 | width:26px; 210 | background:white; 211 | border-bottom-right-radius: 10px; 212 | transform:translate(-30px, -2px); 213 | } 214 | } 215 | */ 216 | #he { 217 | align-self: flex-start; 218 | word-wrap:break-word; 219 | margin-bottom:12px; 220 | line-height:24px; 221 | position:relative; 222 | background-color: #fff; 223 | padding: 10px 22px; 224 | border-radius: 0px 9px 9px 9px; 225 | width: 40%; 226 | margin: 5px; 227 | word-wrap: break-word; 228 | &:before { 229 | left:-7px; 230 | border-left:20px solid #E5E5EA; 231 | border-bottom-right-radius: 16px 14px; 232 | transform:translate(0, -2px); 233 | } 234 | 235 | &:after { 236 | left:4px; 237 | width:26px; 238 | background:white; 239 | border-bottom-right-radius: 10px; 240 | transform:translate(-30px, -2px); 241 | } 242 | } 243 | 244 | #me{ 245 | align-self:flex-end; 246 | word-wrap:break-word; 247 | margin-bottom:12px; 248 | margin-right:5px; 249 | line-height:24px; 250 | position:relative; 251 | background-color: #dcf8c6; 252 | padding: 10px 22px; 253 | border-radius: 9px 0px 9px 9px; 254 | width: 100%; 255 | margin: 5px; 256 | 257 | } 258 | .crate{ 259 | position:relative; 260 | width:100%; 261 | max-width:100%; 262 | margin:auto; 263 | } 264 | 265 | .bton{ 266 | background-color: #128C7E; 267 | position:relative; 268 | top:4px; 269 | margin-top:-18px; 270 | margin-left:90%; 271 | color:white; 272 | height:42px; 273 | font-size:24px; 274 | width:42px; 275 | border:none; 276 | border-radius:50%; 277 | display:inline-block ; 278 | } 279 | 280 | #bton{ 281 | display:inline-block; 282 | height:45px; 283 | width:45px; 284 | border-radius:50%; 285 | border:none; 286 | outline:none; 287 | display:flex; 288 | justify-content: center; 289 | align-items: center; 290 | font-size:20px; 291 | color:#fff; 292 | background:#128C7E; 293 | cursor:pointer; 294 | } 295 | 296 | /* CSS FILE*/ 297 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Creative Commons Legal Code 2 | 3 | CC0 1.0 Universal 4 | 5 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE 6 | LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN 7 | ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS 8 | INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES 9 | REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS 10 | PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM 11 | THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED 12 | HEREUNDER. 13 | 14 | Statement of Purpose 15 | 16 | The laws of most jurisdictions throughout the world automatically confer 17 | exclusive Copyright and Related Rights (defined below) upon the creator 18 | and subsequent owner(s) (each and all, an "owner") of an original work of 19 | authorship and/or a database (each, a "Work"). 20 | 21 | Certain owners wish to permanently relinquish those rights to a Work for 22 | the purpose of contributing to a commons of creative, cultural and 23 | scientific works ("Commons") that the public can reliably and without fear 24 | of later claims of infringement build upon, modify, incorporate in other 25 | works, reuse and redistribute as freely as possible in any form whatsoever 26 | and for any purposes, including without limitation commercial purposes. 27 | These owners may contribute to the Commons to promote the ideal of a free 28 | culture and the further production of creative, cultural and scientific 29 | works, or to gain reputation or greater distribution for their Work in 30 | part through the use and efforts of others. 31 | 32 | For these and/or other purposes and motivations, and without any 33 | expectation of additional consideration or compensation, the person 34 | associating CC0 with a Work (the "Affirmer"), to the extent that he or she 35 | is an owner of Copyright and Related Rights in the Work, voluntarily 36 | elects to apply CC0 to the Work and publicly distribute the Work under its 37 | terms, with knowledge of his or her Copyright and Related Rights in the 38 | Work and the meaning and intended legal effect of CC0 on those rights. 39 | 40 | 1. Copyright and Related Rights. A Work made available under CC0 may be 41 | protected by copyright and related or neighboring rights ("Copyright and 42 | Related Rights"). Copyright and Related Rights include, but are not 43 | limited to, the following: 44 | 45 | i. the right to reproduce, adapt, distribute, perform, display, 46 | communicate, and translate a Work; 47 | ii. moral rights retained by the original author(s) and/or performer(s); 48 | iii. publicity and privacy rights pertaining to a person's image or 49 | likeness depicted in a Work; 50 | iv. rights protecting against unfair competition in regards to a Work, 51 | subject to the limitations in paragraph 4(a), below; 52 | v. rights protecting the extraction, dissemination, use and reuse of data 53 | in a Work; 54 | vi. database rights (such as those arising under Directive 96/9/EC of the 55 | European Parliament and of the Council of 11 March 1996 on the legal 56 | protection of databases, and under any national implementation 57 | thereof, including any amended or successor version of such 58 | directive); and 59 | vii. other similar, equivalent or corresponding rights throughout the 60 | world based on applicable law or treaty, and any national 61 | implementations thereof. 62 | 63 | 2. Waiver. To the greatest extent permitted by, but not in contravention 64 | of, applicable law, Affirmer hereby overtly, fully, permanently, 65 | irrevocably and unconditionally waives, abandons, and surrenders all of 66 | Affirmer's Copyright and Related Rights and associated claims and causes 67 | of action, whether now known or unknown (including existing as well as 68 | future claims and causes of action), in the Work (i) in all territories 69 | worldwide, (ii) for the maximum duration provided by applicable law or 70 | treaty (including future time extensions), (iii) in any current or future 71 | medium and for any number of copies, and (iv) for any purpose whatsoever, 72 | including without limitation commercial, advertising or promotional 73 | purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each 74 | member of the public at large and to the detriment of Affirmer's heirs and 75 | successors, fully intending that such Waiver shall not be subject to 76 | revocation, rescission, cancellation, termination, or any other legal or 77 | equitable action to disrupt the quiet enjoyment of the Work by the public 78 | as contemplated by Affirmer's express Statement of Purpose. 79 | 80 | 3. Public License Fallback. Should any part of the Waiver for any reason 81 | be judged legally invalid or ineffective under applicable law, then the 82 | Waiver shall be preserved to the maximum extent permitted taking into 83 | account Affirmer's express Statement of Purpose. In addition, to the 84 | extent the Waiver is so judged Affirmer hereby grants to each affected 85 | person a royalty-free, non transferable, non sublicensable, non exclusive, 86 | irrevocable and unconditional license to exercise Affirmer's Copyright and 87 | Related Rights in the Work (i) in all territories worldwide, (ii) for the 88 | maximum duration provided by applicable law or treaty (including future 89 | time extensions), (iii) in any current or future medium and for any number 90 | of copies, and (iv) for any purpose whatsoever, including without 91 | limitation commercial, advertising or promotional purposes (the 92 | "License"). The License shall be deemed effective as of the date CC0 was 93 | applied by Affirmer to the Work. Should any part of the License for any 94 | reason be judged legally invalid or ineffective under applicable law, such 95 | partial invalidity or ineffectiveness shall not invalidate the remainder 96 | of the License, and in such case Affirmer hereby affirms that he or she 97 | will not (i) exercise any of his or her remaining Copyright and Related 98 | Rights in the Work or (ii) assert any associated claims and causes of 99 | action with respect to the Work, in either case contrary to Affirmer's 100 | express Statement of Purpose. 101 | 102 | 4. Limitations and Disclaimers. 103 | 104 | a. No trademark or patent rights held by Affirmer are waived, abandoned, 105 | surrendered, licensed or otherwise affected by this document. 106 | b. Affirmer offers the Work as-is and makes no representations or 107 | warranties of any kind concerning the Work, express, implied, 108 | statutory or otherwise, including without limitation warranties of 109 | title, merchantability, fitness for a particular purpose, non 110 | infringement, or the absence of latent or other defects, accuracy, or 111 | the present or absence of errors, whether or not discoverable, all to 112 | the greatest extent permissible under applicable law. 113 | c. Affirmer disclaims responsibility for clearing rights of other persons 114 | that may apply to the Work or any use thereof, including without 115 | limitation any person's Copyright and Related Rights in the Work. 116 | Further, Affirmer disclaims responsibility for obtaining any necessary 117 | consents, permissions or other rights required for any use of the 118 | Work. 119 | d. Affirmer understands and acknowledges that Creative Commons is not a 120 | party to this document and has no duty or obligation with respect to 121 | this CC0 or use of the Work. 122 | --------------------------------------------------------------------------------