├── .gitignore ├── LICENSE ├── README.md ├── config.json ├── index.js ├── info.js ├── lib ├── ban.js ├── banned.json ├── color.js ├── fetcher.js ├── functions.js ├── help.js ├── msgFilter.js ├── nsfw.json ├── poke.js ├── pokedata │ └── pkmnz.json ├── profile.js ├── quote.json ├── rule.json ├── sticker.js └── welcome.json ├── media ├── audio │ └── hello.txt ├── sticker │ ├── data.exif │ └── hello.txt ├── tts │ └── restts.mp3 └── video │ └── hello.txt ├── msgHandler.js ├── nonPrefix.js ├── package.json ├── queue.js ├── sendSticker.js ├── test.js └── welcome.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *Imperial.data.json 3 | *ignore.js 4 | *untitled.js 5 | 6 | 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
2 | Botto-re 3 | 4 | # Whatsapp-Botto-Re 5 | 6 | > A whatsapp bot made using open-wa/wa-automate-nodejs library 7 | 8 | ## THERE'S A SUCCESSOR TO THIS PROJECT WITH FULL SUPPORT CHECK IT OUT 9 | ## Whatsapp-Botto-Xre 10 | 11 |

12 | 13 | 14 | 15 | Maintenance 16 | 17 |

18 | 19 |

20 | Prerequisites • 21 | Installation • 22 | Features • 23 | License 24 |

25 | 26 | ### 🏠 [Homepage](https://ewh-dev.herokuapp.com/index.html) 27 | ### [Whatsapp Group](https://chat.whatsapp.com/DchcgNLvkluIUe0DMf13QR) 28 | 29 |
30 | 31 | ## 📝 Prerequisites 32 | 33 | - git 34 | - npm >=2.0.32 35 | - node >=12.18.3 36 | 37 | 38 | ## ✍️ Editing The Config 39 | 40 | Edit `config.json` to customize the bot as needed 41 | ```JSON 42 | 43 | { 44 | "botadmins": [], 45 | "prefix": "=", 46 | "uaOverride": "WhatsApp/2.2037.6 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36", 47 | "botname": "Emilia" 48 | } 49 | 50 | ``` 51 | 52 | `botadmins`: Put the array of [contactIds](https://docs.openwa.dev/globals.html#contactid) of the people who you want be bot admins
53 | `prefix`: The prefix of the bot
54 | `uaOverride`: Your user Agent
55 | `botname`: The name of your bot
56 | 57 | ## 🔍 Installation 58 | 59 | * [Ffmpeg](https://ffmpeg.org/download.html) 60 | * [ImageMagick](https://imagemagick.org/script/download.php) 61 | * [Libwebp](https://developers.google.com/speed/webp/download) (optional) 62 | 63 | ### Windows 64 | 65 | [Windows Easy Installer](https://github.com/shubham8550) 66 | 67 | ### Linux 68 | 69 | ```bash 70 | 71 | >git clone https://github.com/SomnathDas/Whatsapp-botto-re 72 | > npm install 73 | 74 | ``` 75 | 76 | ## 🟩 Starting the server 77 | 78 | ```bash 79 | 80 | > npm start 81 | 82 | ``` 83 | 84 | 85 | ## 💡 Features 86 | 87 | ### Prefix = # 88 | 89 | | Features | Command | Acces | 90 | |:-----------------------------:|:-----------------:|:--------:| 91 | | Convert Images into stickers | #sticker | Everyone | 92 | | Convert Videos into stickers | #sticker/#gsticker| Everyone | 93 | | Display anime info | #anime anime name | Everyone | 94 | | Display Lyrics of songs | #lyrics song name | Everyone | 95 | | Display Group info | #groupinfo | Everyone | 96 | | Return wallpapers | #wallpaper term | Everyone | 97 | | Scrap Subreddits [image based]| #sr subreddit | Everyone | 98 | | Translate Text | #translate [quote]| Everyone | 99 | | Display Covid 19 Info | #covid country | Everyone | 100 | | Make quotes | #quotemaker | Everyone | 101 | | Toggle NSFW | #act nsfw | Admins | 102 | | Greet new members | #act welcome | Admins | 103 | | Mention all group members | #ping text | Admins | 104 | | Promote members | #promote @user | Admins | 105 | | Demote admins | #demote @user | Admins | 106 | | Display User profile | #profile | Everyone | 107 | 108 | ### Random results 109 | 110 | | Command | Result | 111 | |:-------:|:------:| 112 | |#pokemon | Displays a random pokemon| 113 | |#rpaper | Displays a random Wallpaper| 114 | |#waifu | Displays a random waifu and the info | 115 | |#husbu | Displays a random husbando and info | 116 | |#animeneko | Displays a random animeneko | 117 | |#neko | Displays a random cat | 118 | |#doggo | Displays a random dog | 119 | 120 | 121 | ## 🤝 Contributing 122 | 123 | Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/SomnathDas/Whatsapp-Botto-Re/issues). 124 | 125 | ## 🔮 Original Authors 126 | 127 | 👤 **Somnath Das** 128 | 129 | * Twitter: [@aksd3247](https://twitter.com/aksd3247) 130 | * Github: [@SomnathDas](https://github.com/SomnathDas) 131 | * Instagram: [@samurai3247](https://www.instagram.com/samurai3247/) 132 | 133 | 👤 **Alen Yohannan** 134 | * Twitter: 135 | * GitHub: [@AlenSaito1](https://github.com/AlenSaito1) 136 | * Instagram: 137 | 138 | ## 📝 License 139 | 140 | This project is [GNU General Public License v3.0](https://github.com/SomnathDas/Whatsapp-Botto-Re/blob/master/LICENSE) licensed. 141 | 142 | ## Show your support 143 | 144 | Give a ⭐️ if this project helped you! 145 | 146 | *** 147 | -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- 1 | { 2 | "botadmins": ["919744375687@c.us"], 3 | "prefix": "{", 4 | "uaOverride": "WhatsApp/2.2037.6 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36", 5 | "botname": "Emilia" 6 | } 7 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const { create } = require('@open-wa/wa-automate') 2 | const msgHandler = require('./msgHandler') 3 | const fs = require('fs-extra') 4 | const config = JSON.parse(fs.readFileSync('./config.json')) 5 | const serverOption = { 6 | headless: true, 7 | cacheEnabled: false, 8 | useChrome: true, 9 | chromiumArgs: [ 10 | '--no-sandbox', 11 | '--disable-setuid-sandbox', 12 | '--aggressive-cache-discard', 13 | '--disable-cache', 14 | '--disable-application-cache', 15 | '--disable-offline-load-stale-cache', 16 | '--disk-cache-size=0' 17 | ] 18 | } 19 | 20 | const opsys = process.platform 21 | if (opsys === 'win32' || opsys === 'win64') { 22 | serverOption.executablePath = 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe' 23 | } else if (opsys === 'linux') { 24 | serverOption.browserRevision = '737027' 25 | } else if (opsys === 'darwin') { 26 | serverOption.executablePath = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' 27 | } 28 | 29 | const startServer = async (client) => { 30 | global.sclient = client 31 | sendingSticker = [] 32 | queueSticker = [] 33 | botadmins = config.botadmins 34 | prefix = config.prefix 35 | botname = config.botname 36 | global.sendingAnimatedSticker = [] 37 | global.queueAnimatedSticker = [] 38 | global.amdownloaden = [] 39 | global.queuemp3 = [] 40 | global.queuemp4 = [] 41 | spamarr = [] 42 | console.log('[SERVER] Server Started!') 43 | // Force it to keep the current session 44 | client.onStateChanged((state) => { 45 | console.log('[Client State]', state) 46 | if (state === 'CONFLICT') client.forceRefocus() 47 | }) 48 | // listening on message 49 | client.onMessage((message) => { 50 | msgHandler(client, message) 51 | }) 52 | 53 | 54 | 55 | client.onAddedToGroup((chat) => { 56 | let totalMem = chat.groupMetadata.participants.length 57 | if (totalMem < 30) { 58 | client.sendText(chat.id, `This group only has ${totalMem} members, Its needs atleast 30 members to activate the services`).then(() => client.leaveGroup(chat.id)) 59 | client.deleteChat(chat.id) 60 | } else { 61 | client.sendText(chat.groupMetadata.id, `Thanks for adding me *${chat.contact.name}*. Use #help to see the usable commands`) 62 | } 63 | }) 64 | 65 | // listening on Incoming Call 66 | client.onIncomingCall((call) => { 67 | client.sendText(call.peerJid, '...') 68 | client.contactBlock(call.peerJid) 69 | ban.push(call.peerJid) 70 | fs.writeFileSync('./lib/banned.json', JSON.stringify(ban)) 71 | }) 72 | } 73 | 74 | create({"headless": true, 75 | "cacheEnabled": false, 76 | "useChrome": true, 77 | "chromiumArgs": [ 78 | "--no-sandbox", 79 | "--disable-setuid-sandbox", 80 | "--aggressive-cache-discard", 81 | "--disable-cache", 82 | "--disable-application-cache", 83 | "--disable-offline-load-stale-cache", 84 | "--disk-cache-size=0" 85 | ] 86 | }) 87 | .then(async (client) => startServer(client)) 88 | .catch((error) => console.log(error)) 89 | -------------------------------------------------------------------------------- /info.js: -------------------------------------------------------------------------------- 1 | exports.info = async function() { 2 | 3 | while(true) { 4 | 5 | await client.setMyStatus('Neko, da god of culture'); 6 | await Sleep(60000) 7 | await client.setMyStatus('It is not like i am horny ✨️'); 8 | await Sleep(60000) 9 | await client.setMyStatus('Legends actually die lol 🔱️'); 10 | await Sleep(60000) 11 | } 12 | 13 | } 14 | 15 | function Sleep(milliseconds) { 16 | return new Promise(resolve => setTimeout(resolve, milliseconds)); 17 | } 18 | -------------------------------------------------------------------------------- /lib/ban.js: -------------------------------------------------------------------------------- 1 | const fs = require('fs-extra') 2 | 3 | exports.ban = async function (message) { 4 | numBan = message.body.substring(message.body.indexOf('@') + 1) 5 | fs.appendFileSync('./lib/ban.txt', `${message.from} ${numBan}@c.us\n`) 6 | console.log(numBan) 7 | } 8 | 9 | exports.unban = async function (message) { 10 | numUnBan = message.body.substring(message.body.indexOf('@') + 1) 11 | fs.readFile('./lib/ban.txt', { encoding: 'utf-8'}, function (err, data) { 12 | if (err) throw err 13 | 14 | let dataArray = data.split('\n') 15 | const key = `${message.from} ${numUnBan}@c.us` 16 | let lastI = -1 17 | 18 | for (let i = 0; i < dataArray.length; i++) { 19 | if (dataArray[i].includes(key)) { 20 | lastI = i 21 | break 22 | } 23 | } 24 | dataArray.splice(lastI, 1) 25 | const dataUpdate = dataArray.join('\n') 26 | fs.writeFile('./lib/ban.txt', dataUpdate, function(err) { 27 | if (err) throw err 28 | }) 29 | }) 30 | } -------------------------------------------------------------------------------- /lib/banned.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /lib/color.js: -------------------------------------------------------------------------------- 1 | module.exports = color = (text, color) => { 2 | switch (color) { 3 | case 'red': return '\x1b[31m' + text + '\x1b[0m' 4 | case 'yellow': return '\x1b[33m' + text + '\x1b[0m' 5 | default: return '\x1b[32m' + text + '\x1b[0m' // default is green 6 | } 7 | } -------------------------------------------------------------------------------- /lib/fetcher.js: -------------------------------------------------------------------------------- 1 | const fetch = require('node-fetch'); 2 | 3 | const getBase64 = async (url) => { 4 | const response = await fetch(url, { headers: { 'User-Agent': 'okhttp/4.5.0' } }); 5 | if (!response.ok) throw new Error(`unexpected response ${response.statusText}`); 6 | const buffer = await response.buffer(); 7 | const videoBase64 = `data:${response.headers.get('content-type')};base64,` + buffer.toString('base64'); 8 | if (buffer) 9 | return videoBase64; 10 | }; 11 | 12 | exports.getBase64 = getBase64; 13 | -------------------------------------------------------------------------------- /lib/functions.js: -------------------------------------------------------------------------------- 1 | const fetch = require('node-fetch') 2 | const { getBase64 } = require("./fetcher"); 3 | 4 | const liriklagu = async (lagu) => { 5 | const response = await fetch('http://scrap.terhambar.com/lirik?word='+lagu) 6 | if (!response.ok) throw new Error(`unexpected response ${response.statusText}`); 7 | const json = await response.json() 8 | if (json.status) return `Lyrics - ${lagu}\n\n${json.result.lirik}` 9 | } 10 | 11 | const cerpen = async () => { 12 | const response = await fetch('http://api.fdci.se/cerpen') 13 | if (!response.ok) throw new Error(`nexpected response ${response.status}`) 14 | const text = await response.text() 15 | if (text.status) return text 16 | } 17 | 18 | const wallpaperanime = async () => { 19 | const response = await fetch('https://nekos.life/api/v2/img/wallpaper'); 20 | if (!response.ok) throw new Error(`unexpected response`); 21 | const json = await response.json() 22 | return json.url 23 | } 24 | 25 | const quotemaker = async (quotes, author = 'Zelda', type = 'random') => { 26 | var q = quotes.replace(/ /g, '%20').replace('\n','%5Cn') 27 | const response = await fetch(`https://terhambar.com/aw/qts/?kata=${q}&author=${author}&tipe=${type}`) 28 | if (!response.ok) throw new Error(`unexpected response ${response.statusText}`); 29 | const json = await response.json() 30 | if (json.status) { 31 | if (json.result !== '') { 32 | const base64 = await getBase64(json.result) 33 | return base64 34 | } 35 | } 36 | } 37 | 38 | const wall = async(query) => { 39 | var q = query.replace(/ /g, '+') 40 | const response = await fetch(`https://wall.alphacoders.com/api2.0/get.php?auth=3e7756c85df54b78f934a284c11abe4e&method=search&term=${q}`) 41 | if (!response.ok) throw new Error(`unexpected response ${response.statusText}`) 42 | const json = await response.json() 43 | // console.log(json) 44 | if (json.success === true) { 45 | return json.wallpapers[Math.floor(Math.random()*json.wallpapers.length)].url_image 46 | } else { 47 | return `https://c4.wallpaperflare.com/wallpaper/976/117/318/anime-girls-404-not-found-glowing-eyes-girls-frontline-wallpaper-preview.jpg` 48 | } 49 | } 50 | 51 | exports.liriklagu = liriklagu; 52 | exports.quotemaker = quotemaker; 53 | exports.cerpen = cerpen; 54 | exports.wall = wall; 55 | -------------------------------------------------------------------------------- /lib/help.js: -------------------------------------------------------------------------------- 1 | // edit it to change the bot's name 2 | const botname = 'Emilia' 3 | 4 | function help(prefix, pushname) { 5 | return `👋️Hi ${pushname}, I'm ${botname}! 6 | 7 | Prefix - ${prefix} 8 | 9 | 🌟️ Command List 🌟️ 10 | 11 | *_CMD: ${prefix}profile_* 12 | *Description: Displays the information of the user* 13 | 14 | *_CMD: ${prefix}info_* 15 | *Description: Displays the information about the bot* 🌐️ 16 | 17 | *_CMD: ${prefix}sticker_* 18 | *Description: Turns images into stickers* 🔖️ 19 | Usage: ${prefix}sticker as caption of picture 20 | 21 | *_CMD: ${prefix}gsticker _* 22 | *Description: Turns gifs into stickers* 🌠️ 23 | 24 | *_CMD: ${prefix}sauce_* 25 | *Description: Give's the title of the picture specified* ❤️ 26 | Usage: ${prefix}sauce as the caption or reply of any picture 27 | 28 | *_CMD: ${prefix}pokemon_* 29 | *Description: Returns picture of a random Pokemon* 😺️ 30 | 31 | *_CMD: ${prefix}waifu_* 32 | *Description: Returns picture of a random waifu* 💌️ 33 | 34 | *_CMD: ${prefix}anime _* 35 | Description: Returns the information of the given anime* 📺️ 36 | Usage: ${prefix}anime sakura trick 37 | 38 | *_${prefix}tts _* [Disabled due to ban-risk] 39 | *Description: Converts text to speech* 🗣️ 40 | Usage: ${prefix}tts en I love Emilia 41 | 42 | *_${prefix}quotemaker | quote | author |_* 43 | *Description: Convert the given quote to an image* 44 | Usage: ${prefix}qm | Courage need not to be remembered, for it is never forgotten | Emilia 🌌️ 45 | 46 | *_${prefix}lyrics _* 47 | *Description: Displays the lyricsof the given song* 🎶️ 48 | Usage: ${prefix}lyrics Shinzou wo sasageyo 49 | 50 | *_CMD: ${prefix}neko_* 51 | *Description: Displays picture of a random cat* 🐈️ 52 | 53 | *_CMD: ${prefix}doggo_* 54 | *Description: Displays picture of a random pup* 🐕️ 55 | 56 | *_CMD: ${prefix}rpaper_* 57 | *Description: Displays a random wallpaper* 🌆️ 58 | 59 | *_CMD: ${prefix}animeneko_* 60 | Description: Displays picture of an anime cat ;)* 💚️ 61 | 62 | *_CMD: ${prefix}wallpaper _* 63 | *Description: Returns a random anime wallpaper based on the keyword* 📱️ 64 | Usage: ${prefix}wallpaper Black Butler 65 | 66 | *_CMD: ${prefix}covid _* 67 | *Description: Displays the live stats of Covid-19 of the given country* 🌍️ 68 | Usage: ${prefix}covid Japan 69 | 70 | *_CMD: ${prefix}meme_* 71 | *Description: Returns a random meme 🎷️ 72 | 73 | *_CMD: ${prefix}sr _* 74 | *Description: Displays a post from the given subreddit* 💻️ 75 | Usage: ${prefix}sr Emilia 76 | 77 | *_CMD: ${prefix}quotes_* [Disabled] 78 | *Description: Returns a quote that will either give you existential crises or wisdom* 🌠️ 79 | 80 | *_CMD: ${prefix}groupinfo_* 81 | *Description: Displays the information of the group* ⛱️ 82 | 83 | *_CMD: ${prefix}roll_* 84 | *Description: Rolls a dice* 🎲 85 | 86 | *_CMD: ${prefix}flip_* 87 | *Description: Flips a coin* 🟡 88 | 89 | Admin Commands 📙️ 90 | 91 | Only group admins can execute this command 92 | 93 | *_CMD: ${prefix}ping _* 94 | *Description: Tags all members in the group* 🔊️ 95 | Usage: ${prefix}ping Well, in that case 96 | 97 | *_CMD: ${prefix}delete_* 98 | Description: Deletes the Bot's message* 💔️ 99 | Usage: Send ${prefix}delete as reply to the bot's message 100 | 101 | To execute the following commands the bot and the author needs to be admin 102 | 103 | *_CMD: ${prefix}seticon_* 104 | *Description: Sets the quoted image as the group icon* 🎆️ 105 | 106 | *_CMD: ${prefix}kick @user_* 107 | *Description: Kicks the mentioned person from the group* 🏌️ 108 | 109 | *_CMD: ${prefix}promote @user_* 110 | *Description: Makes the metioned user admin* 👑️ 111 | 112 | *_CMD: ${prefix}demote @user_* 113 | *Description: Demotes the mentioned user from adminship* 💔️ 114 | 115 | 116 | There are many hidden and fun keywords ;) 117 | 118 | Hope you have a great day!` 119 | } 120 | module.exports = { info, help } 121 | function info() { 122 | return `INFO!` 123 | } 124 | 125 | 126 | -------------------------------------------------------------------------------- /lib/msgFilter.js: -------------------------------------------------------------------------------- 1 | const usedCommandRecently = new Set() 2 | 3 | /** 4 | * Check is number filtered 5 | * @param {String} from 6 | */ 7 | const isFiltered = (from) => !!usedCommandRecently.has(from) 8 | 9 | /** 10 | * Add number to filter 11 | * @param {String} from 12 | */ 13 | const addFilter = (from) => { 14 | usedCommandRecently.add(from) 15 | setTimeout(() => usedCommandRecently.delete(from), 5000) // 5sec is delay before processing next command 16 | } 17 | 18 | module.exports = { 19 | isFiltered, 20 | addFilter 21 | } 22 | -------------------------------------------------------------------------------- /lib/nsfw.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /lib/poke.js: -------------------------------------------------------------------------------- 1 | const fs = require('fs-extra') 2 | const axios = require('axios') 3 | const pokeArray = JSON.parse(fs.readFileSync('./lib/pokedata/pkmnz.json')) 4 | 5 | module.exports = { pkmzdata, pkmnabi, pkmntype, pkmnstats, capitalize, pokeCheck } 6 | 7 | function Sleep(milliseconds) { 8 | return new Promise((resolve) => setTimeout(resolve, milliseconds)) 9 | } 10 | 11 | 12 | async function pkmzdata(pkmnm) { 13 | 14 | const pkmnz = await axios.get(`https://pokeapi.co/api/v2/pokemon/${await pokeCheck(pkmnm)}`) 15 | var pkurl = pkmnz.data.sprites.other['official-artwork'].front_default 16 | if (pkurl == null) { 17 | var pkurl = `https://assets.pokemon.com/assets/cms2/img/pokedex/full/${pkmnz.data.id}.png` 18 | } 19 | 20 | var text = `👑️ Name: ${await capitalize(pkmnz.data.species.name)} 21 | 22 | ⭐️ ${await pkmntype(pkmnz.data)} 23 | 24 | 🎉️ ${await pkmnabi(pkmnz.data)} 25 | 26 | 💎️ ${await pkmnstats(pkmnz.data)}` 27 | 28 | return { "data": text, "url": pkurl} 29 | 30 | } 31 | 32 | async function pokeCheck(pokeName) { 33 | 34 | const dexNo = pokeArray.indexOf(pokeName.toLowerCase()) 35 | return dexNo + 1 36 | 37 | } 38 | 39 | 40 | async function pkmnabi(pkdata) { 41 | var abi = 'Abilities: |' 42 | let no = pkdata.abilities.length 43 | for (let i = 0; i < no; i++) { 44 | var cap = await capitalize(`${pkdata.abilities[i].ability.name}`) 45 | abi = abi+` ${cap} |` 46 | } 47 | return abi 48 | } 49 | 50 | async function capitalize(sz) { 51 | if (typeof sz !== 'string') return '' 52 | return sz.charAt(0).toUpperCase() + sz.slice(1) 53 | } 54 | 55 | async function pkmntype(pkdata) { 56 | var typ = 'Types: |' 57 | let no = pkdata.types.length 58 | for (let i = 0; i < no; i++) { 59 | var cap = await capitalize(`${pkdata.types[i].type.name}`) 60 | typ = typ+` ${cap} |` 61 | } 62 | return typ 63 | } 64 | 65 | async function pkmnstats(pkdata) { 66 | var stat = 'Base Stats: |' 67 | let no = pkdata.stats.length 68 | for (let i = 0; i < no; i++) { 69 | var sta = await capitalize(`${pkdata.stats[i].stat.name}`) 70 | stat = stat+` ${sta}: ${pkdata.stats[i].base_stat} |` 71 | } 72 | return stat 73 | } 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /lib/pokedata/pkmnz.json: -------------------------------------------------------------------------------- 1 | ["bulbasaur","ivysaur","venusaur","charmander","charmeleon","charizard","squirtle","wartortle","blastoise","caterpie","metapod","butterfree","weedle","kakuna","beedrill","pidgey","pidgeotto","pidgeot","rattata","raticate","spearow","fearow","ekans","arbok","pikachu","raichu","sandshrew","sandslash","nidoran-f","nidorina","nidoqueen","nidoran-m","nidorino","nidoking","clefairy","clefable","vulpix","ninetales","jigglypuff","wigglytuff","zubat","golbat","oddish","gloom","vileplume","paras","parasect","venonat","venomoth","diglett","dugtrio","meowth","persian","psyduck","golduck","mankey","primeape","growlithe","arcanine","poliwag","poliwhirl","poliwrath","abra","kadabra","alakazam","machop","machoke","machamp","bellsprout","weepinbell","victreebel","tentacool","tentacruel","geodude","graveler","golem","ponyta","rapidash","slowpoke","slowbro","magnemite","magneton","farfetchd","doduo","dodrio","seel","dewgong","grimer","muk","shellder","cloyster","gastly","haunter","gengar","onix","drowzee","hypno","krabby","kingler","voltorb","electrode","exeggcute","exeggutor","cubone","marowak","hitmonlee","hitmonchan","lickitung","koffing","weezing","rhyhorn","rhydon","chansey","tangela","kangaskhan","horsea","seadra","goldeen","seaking","staryu","starmie","mr-mime","scyther","jynx","electabuzz","magmar","pinsir","tauros","magikarp","gyarados","lapras","ditto","eevee","vaporeon","jolteon","flareon","porygon","omanyte","omastar","kabuto","kabutops","aerodactyl","snorlax","articuno","zapdos","moltres","dratini","dragonair","dragonite","mewtwo","mew","chikorita","bayleef","meganium","cyndaquil","quilava","typhlosion","totodile","croconaw","feraligatr","sentret","furret","hoothoot","noctowl","ledyba","ledian","spinarak","ariados","crobat","chinchou","lanturn","pichu","cleffa","igglybuff","togepi","togetic","natu","xatu","mareep","flaaffy","ampharos","bellossom","marill","azumarill","sudowoodo","politoed","hoppip","skiploom","jumpluff","aipom","sunkern","sunflora","yanma","wooper","quagsire","espeon","umbreon","murkrow","slowking","misdreavus","unown","wobbuffet","girafarig","pineco","forretress","dunsparce","gligar","steelix","snubbull","granbull","qwilfish","scizor","shuckle","heracross","sneasel","teddiursa","ursaring","slugma","magcargo","swinub","piloswine","corsola","remoraid","octillery","delibird","mantine","skarmory","houndour","houndoom","kingdra","phanpy","donphan","porygon2","stantler","smeargle","tyrogue","hitmontop","smoochum","elekid","magby","miltank","blissey","raikou","entei","suicune","larvitar","pupitar","tyranitar","lugia","ho-oh","celebi","treecko","grovyle","sceptile","torchic","combusken","blaziken","mudkip","marshtomp","swampert","poochyena","mightyena","zigzagoon","linoone","wurmple","silcoon","beautifly","cascoon","dustox","lotad","lombre","ludicolo","seedot","nuzleaf","shiftry","taillow","swellow","wingull","pelipper","ralts","kirlia","gardevoir","surskit","masquerain","shroomish","breloom","slakoth","vigoroth","slaking","nincada","ninjask","shedinja","whismur","loudred","exploud","makuhita","hariyama","azurill","nosepass","skitty","delcatty","sableye","mawile","aron","lairon","aggron","meditite","medicham","electrike","manectric","plusle","minun","volbeat","illumise","roselia","gulpin","swalot","carvanha","sharpedo","wailmer","wailord","numel","camerupt","torkoal","spoink","grumpig","spinda","trapinch","vibrava","flygon","cacnea","cacturne","swablu","altaria","zangoose","seviper","lunatone","solrock","barboach","whiscash","corphish","crawdaunt","baltoy","claydol","lileep","cradily","anorith","armaldo","feebas","milotic","castform","kecleon","shuppet","banette","duskull","dusclops","tropius","chimecho","absol","wynaut","snorunt","glalie","spheal","sealeo","walrein","clamperl","huntail","gorebyss","relicanth","luvdisc","bagon","shelgon","salamence","beldum","metang","metagross","regirock","regice","registeel","latias","latios","kyogre","groudon","rayquaza","jirachi","deoxys","turtwig","grotle","torterra","chimchar","monferno","infernape","piplup","prinplup","empoleon","starly","staravia","staraptor","bidoof","bibarel","kricketot","kricketune","shinx","luxio","luxray","budew","roserade","cranidos","rampardos","shieldon","bastiodon","burmy","wormadam","mothim","combee","vespiquen","pachirisu","buizel","floatzel","cherubi","cherrim","shellos","gastrodon","ambipom","drifloon","drifblim","buneary","lopunny","mismagius","honchkrow","glameow","purugly","chingling","stunky","skuntank","bronzor","bronzong","bonsly","mime-jr","happiny","chatot","spiritomb","gible","gabite","garchomp","munchlax","riolu","lucario","hippopotas","hippowdon","skorupi","drapion","croagunk","toxicroak","carnivine","finneon","lumineon","mantyke","snover","abomasnow","weavile","magnezone","lickilicky","rhyperior","tangrowth","electivire","magmortar","togekiss","yanmega","leafeon","glaceon","gliscor","mamoswine","porygon-z","gallade","probopass","dusknoir","froslass","rotom","uxie","mesprit","azelf","dialga","palkia","heatran","regigigas","giratina","cresselia","phione","manaphy","darkrai","shaymin","arceus","victini","snivy","servine","serperior","tepig","pignite","emboar","oshawott","dewott","samurott","patrat","watchog","lillipup","herdier","stoutland","purrloin","liepard","pansage","simisage","pansear","simisear","panpour","simipour","munna","musharna","pidove","tranquill","unfezant","blitzle","zebstrika","roggenrola","boldore","gigalith","woobat","swoobat","drilbur","excadrill","audino","timburr","gurdurr","conkeldurr","tympole","palpitoad","seismitoad","throh","sawk","sewaddle","swadloon","leavanny","venipede","whirlipede","scolipede","cottonee","whimsicott","petilil","lilligant","basculin","sandile","krokorok","krookodile","darumaka","darmanitan","maractus","dwebble","crustle","scraggy","scrafty","sigilyph","yamask","cofagrigus","tirtouga","carracosta","archen","archeops","trubbish","garbodor","zorua","zoroark","minccino","cinccino","gothita","gothorita","gothitelle","solosis","duosion","reuniclus","ducklett","swanna","vanillite","vanillish","vanilluxe","deerling","sawsbuck","emolga","karrablast","escavalier","foongus","amoonguss","frillish","jellicent","alomomola","joltik","galvantula","ferroseed","ferrothorn","klink","klang","klinklang","tynamo","eelektrik","eelektross","elgyem","beheeyem","litwick","lampent","chandelure","axew","fraxure","haxorus","cubchoo","beartic","cryogonal","shelmet","accelgor","stunfisk","mienfoo","mienshao","druddigon","golett","golurk","pawniard","bisharp","bouffalant","rufflet","braviary","vullaby","mandibuzz","heatmor","durant","deino","zweilous","hydreigon","larvesta","volcarona","cobalion","terrakion","virizion","tornadus","thundurus","reshiram","zekrom","landorus","kyurem","keldeo","meloetta","genesect","chespin","quilladin","chesnaught","fennekin","braixen","delphox","froakie","frogadier","greninja","bunnelby","diggersby","fletchling","fletchinder","talonflame","scatterbug","spewpa","vivillon","litleo","pyroar","flabebe","floette","florges","skiddo","gogoat","pancham","pangoro","furfrou","espurr","meowstic","honedge","doublade","aegislash","spritzee","aromatisse","swirlix","slurpuff","inkay","malamar","binacle","barbaracle","skrelp","dragalge","clauncher","clawitzer","helioptile","heliolisk","tyrunt","tyrantrum","amaura","aurorus","sylveon","hawlucha","dedenne","carbink","goomy","sliggoo","goodra","klefki","phantump","trevenant","pumpkaboo","gourgeist","bergmite","avalugg","noibat","noivern","xerneas","yveltal","zygarde","diancie","hoopa","volcanion","rowlet","dartrix","decidueye","litten","torracat","incineroar","popplio","brionne","primarina","pikipek","trumbeak","toucannon","yungoos","gumshoos","grubbin","charjabug","vikavolt","crabrawler","crabominable","oricorio","cutiefly","ribombee","rockruff","lycanroc","wishiwashi","mareanie","toxapex","mudbray","mudsdale","dewpider","araquanid","fomantis","lurantis","morelull","shiinotic","salandit","salazzle","stufful","bewear","bounsweet","steenee","tsareena","comfey","oranguru","passimian","wimpod","golisopod","sandygast","palossand","pyukumuku","type-null","silvally","minior","komala","turtonator","togedemaru","mimikyu","bruxish","drampa","dhelmise","jangmo-o","hakamo-o","kommo-o","tapu-koko","tapu-lele","tapu-bulu","tapu-fini","cosmog","cosmoem","solgaleo","lunala","nihilego","buzzwole","pheromosa","xurkitree","celesteela","kartana","guzzlord","necrozma","magearna","marshadow","poipole","naganadel","stakataka","blacephalon","zeraora","meltan","melmetal","grookey","thwackey","rillaboom","scorbunny","raboot","cinderace","sobble","drizzile","inteleon","skwovet","greedent","rookidee","corvisquire","corviknight","blipbug","dottler","orbeetle","nickit","thievul","gossifleur","eldegoss","wooloo","dubwool","chewtle","drednaw","yamper","boltund","rolycoly","carkol","coalossal","applin","flapple","appletun","silicobra","sandaconda","cramorant","arrokuda","barraskewda","toxel","toxtricity","sizzlipede","centiskorch","clobbopus","grapploct","sinistea","polteageist","hatenna","hattrem","hatterene","impidimp","morgrem","grimmsnarl","obstagoon","perrserker","cursola","sirfetch","mr","runerigus","milcery","alcremie","falinks","pincurchin","snom","frosmoth","stonjourner","eiscue","indeedee","morpeko","cufant","copperajah","dracozolt","arctozolt","dracovish","arctovish","duraludon","dreepy","drakloak","dragapult","zacian","zamazenta","eternatus","kubfu","urshifu","zarude"] -------------------------------------------------------------------------------- /lib/profile.js: -------------------------------------------------------------------------------- 1 | async function profile(contact, message, fs, groupAdmins, client) { 2 | try { 3 | var ban = JSON.parse(fs.readFileSync('./lib/banned.json')) 4 | var person = await sclient.getContact(contact) 5 | var sts = await sclient.getStatus(contact) 6 | var block = ban.includes(contact) 7 | var pfp = await sclient.getProfilePicFromServer(contact) 8 | var adm = groupAdmins.includes(contact) 9 | if (pfp === undefined) { 10 | var pic = 'https://steamuserimages-a.akamaihd.net/ugc/954087817129084207/5B7E46EE484181A676C02DFCAD48ECB1C74BC423/?imw=512&&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=false' 11 | } else { 12 | var pic = pfp 13 | } 14 | const role = 'none' 15 | await client.sendFileFromUrl(message.from, pic, 'pfp.jpg', `🔖️ *Username: ${person.pushname}* 16 | 17 | 💌️ *Motto: ${sts.status}* 18 | 19 | 💚️ *Role: ${role}* 20 | 21 | 👑️ *Admin: ${adm}*`) 22 | 23 | } catch(err) { 24 | console.log(err) 25 | await client.reply(message.from, 'An error occured', message.id) 26 | 27 | } 28 | } 29 | 30 | module.exports = { profile } 31 | -------------------------------------------------------------------------------- /lib/quote.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "by": "A. France", 4 | "quote": "Lebih baik mengerti sedikit daripada salah mengerti." 5 | }, 6 | { 7 | "by": "Abraham Lincoln", 8 | "quote": "Hampir semua pria memang mampu bertahan menghadapi kesulitan. Namun, jika Anda ingin menguji karakter sejati pria, beri dia kekuasaan." 9 | }, 10 | { 11 | "by": "Aeschylus", 12 | "quote": "Bila tekad seseorang kuat dan teguh, Tuhan akan bergabung dalam usahanya." 13 | }, 14 | { 15 | "by": "Aesop", 16 | "quote": "Penderitaan adalah pelajaran." 17 | }, 18 | { 19 | "by": "Albert Einstein", 20 | "quote": "Ilmu pengetahuan tanpa agama adalah pincang." 21 | }, 22 | { 23 | "by": "Albert Einstein", 24 | "quote": "Hidup itu seperti sebuah sepeda, agar tetap seimbang kita harus tetap bergerak." 25 | }, 26 | { 27 | "by": "Albert Einstein", 28 | "quote": "Perbedaan masa lalu, sekarang, dan masa depan tak lebih dari ilusi yang keras kepala." 29 | }, 30 | { 31 | "by": "Albert Einstein", 32 | "quote": "Sebuah meja, sebuah kursi, semangkuk buah, dan sebuah biola; apa lagi yang dibutuhkan agar seseorang bisa merasa bahagia?." 33 | }, 34 | { 35 | "by": "Albert Enstein", 36 | "quote": "Belas kasihanlah terhadap sesama, bersikap keraslah terhadap diri sendiri." 37 | }, 38 | { 39 | "by": "Alex Osborn", 40 | "quote": "Cara paling baik untuk menggerakkan diri Anda ialah memberi tugas kepada diri sendiri." 41 | }, 42 | { 43 | "by": "Alexander A. Bogomoletz", 44 | "quote": "Kita tidak boleh kehilangan semangat. Semangat adalah stimulan terkuat untuk mencintai, berkreasi dan berkeinginan untuk hidup lebih lama." 45 | }, 46 | { 47 | "by": "Alexander Solzhenitsyn", 48 | "quote": "Manusia akan bahagia selama ia memilih untuk bahagia." 49 | }, 50 | { 51 | "by": "Ali Javan", 52 | "quote": "Saya tidak berharap menjadi segalanya bagi setiap orang. Saya hanya ingin menjadi sesuatu untuk seseorang." 53 | }, 54 | { 55 | "by": "Ali bin Abi Thalib", 56 | "quote": "Apabila sempurna akal seseorang, maka sedikit perkataannya." 57 | }, 58 | { 59 | "by": "Ali bin Abi Thalib", 60 | "quote": "Bahagialah orang yang dapat menjadi tuan untuk dirinya, menjadi kusir untuk nafsunya dan menjadi kapten untuk bahtera hidupnya." 61 | }, 62 | { 63 | "by": "Ali bin Abi Thalib", 64 | "quote": "Sahabat yang jujur lebih besar harganya daripada harta benda yang diwarisi dari nenek moyang." 65 | }, 66 | { 67 | "by": "Anne M. Lindbergh", 68 | "quote": "Yang palin melelahkan dalam hidup adalah menjadi orang yang tidak tulus." 69 | }, 70 | { 71 | "by": "Anonim", 72 | "quote": "Terbuka untuk Anda, begitulah Tuhan memberi kita jalan untuk berusaha. Jangan pernah berfikir jalan sudah tertutup." 73 | }, 74 | { 75 | "by": "Anonim", 76 | "quote": "Penundaan adalah kuburan dimana peluang dikuburkan." 77 | }, 78 | { 79 | "by": "Antonie De Saint", 80 | "quote": "Cinta bukan saling menatap mata, namun melihat ke arah yang sama bersama-sama." 81 | }, 82 | { 83 | "by": "Aristoteles", 84 | "quote": "Kita adalah apa yang kita kerjakan berulang kali. Dengan demikian, kecemerlangan bukan tindakan, tetapi kebiasaan." 85 | }, 86 | { 87 | "by": "Arnold Glasow", 88 | "quote": "Jangan pernah mencoba menjadikan putra atau putri Anda menjadi seperti Anda. Diri Anda hanya cukup satu saja." 89 | }, 90 | { 91 | "by": "Art Buchwald", 92 | "quote": "Jika Anda bisa membuat orang lain tertawa, maka Anda akan mendapatkan semua cinta yang Anda inginkan." 93 | }, 94 | { 95 | "by": "Artemus Ward", 96 | "quote": "Masalah akan datang cepat atau lambat. Jika masalah datang, sambut dengan sebaik mungkin. Semakin ramah Anda menyapanya, semakin cepat ia pergi." 97 | }, 98 | { 99 | "by": "Ashleigh Brilliant", 100 | "quote": "Kita tak bisa melakukan apapun untuk mengubah masa lalu. Tapi apapun yang kita lakukan bisa mengubah masa depan." 101 | }, 102 | { 103 | "by": "Augustine", 104 | "quote": "Kesabaran adalah teman dari kebijaksanaan." 105 | }, 106 | { 107 | "by": "Ayn Rand", 108 | "quote": "Orang-orang kreatif termotivasi oleh keinginan untuk maju, bukan oleh keinginan untuk mengalahkan orang lain." 109 | }, 110 | { 111 | "by": "B. J. Habibie", 112 | "quote": "Dimanapun engkau berada selalulah menjadi yang terbaik dan berikan yang terbaik dari yang bisa kita berikan." 113 | }, 114 | { 115 | "by": "Balzac", 116 | "quote": "Kebencian seperti halnya cinta, berkobar karena hal-hal kecil." 117 | }, 118 | { 119 | "by": "Barbara Sher", 120 | "quote": "Anda tidak perlu harus berhasil pada kali pertama." 121 | }, 122 | { 123 | "by": "Beecher", 124 | "quote": "Satu jam yang intensif, jauh lebih baik dan menguntungkan daripada bertahun-tahun bermimpi dan merenung-renung." 125 | }, 126 | { 127 | "by": "Benjamin Disraeli", 128 | "quote": "Hal terbaik yang bisa Anda lakukan untuk orang lain bukanlah membagikan kekayaan Anda, tetapi membantu dia untuk memiliki kekayaannya sendiri." 129 | }, 130 | { 131 | "by": "Bill Clinton", 132 | "quote": "Tidak ada jaminan keberhasilan, tetapi tidak berusaha adalah jaminan kegagalan." 133 | }, 134 | { 135 | "by": "Bill Cosby", 136 | "quote": "Aku tidak tahu kunci sukses itu apa, tapi kunci menuju kegagalan adalah mencoba membuat semua orang senang." 137 | }, 138 | { 139 | "by": "Bill Gates", 140 | "quote": "Konsumen yang paling tidak puas adalah sumber berharga untuk belajar." 141 | }, 142 | { 143 | "by": "Bill Mccartney", 144 | "quote": "Kita ada disini bukan untuk saling bersaing. Kita ada disini untuk saling melengkapi." 145 | }, 146 | { 147 | "by": "Brian Koslow", 148 | "quote": "Semakin kita bersedia bertanggung jawab atas perbuatan-perbuatan kita, semakin banyak kredibilitas yang kita miliki." 149 | }, 150 | { 151 | "by": "Browning", 152 | "quote": "Selalu baik untuk memaafkan, tapi yang paling baik adalah melupakan sebuah kesalahan." 153 | }, 154 | { 155 | "by": "Bruce Lee", 156 | "quote": "Jangan menjadi pohon kaku yang mudah patah. Jadilah bambu yang mampu bertahan melengkung melawan terpaan angin." 157 | }, 158 | { 159 | "by": "Budha Gautama", 160 | "quote": "Jangan menangis karena kegagalan cinta, sebab manusia akan meninggalkan semua yang dicintainya." 161 | }, 162 | { 163 | "by": "Bunda Teresa", 164 | "quote": "Jika Anda mengadili orang lain, Anda tak punya waktu untuk mencintai mereka." 165 | }, 166 | { 167 | "by": "Bunda Teresa", 168 | "quote": "Jika tidak ada perdamaian, hal itu disebabkan kita telah lupa bahwa kita saling membutuhkan." 169 | }, 170 | { 171 | "by": "Bung Hatta", 172 | "quote": "Kurang cerdas dapat diperbaiki dengan belajar, kurang cekatan dapat diperbaiki dengan pengalaman, kurang jujur sulit memperbaikinya." 173 | }, 174 | { 175 | "by": "Burn", 176 | "quote": "Banyak orang sukses berkat banyaknya kesulitan dan kesukaran yang mesti dihadapi." 177 | }, 178 | { 179 | "by": "Carol Burnet", 180 | "quote": "Hanya aku yang bisa merubah hidupku, tak ada seorang pun yang dapat melakukannya untukku." 181 | }, 182 | { 183 | "by": "Charles Darwin", 184 | "quote": "Yang bisa bertahan hidup bukan spesies yang paling kuat. Bukan juga spesies yang paling cerdas. Tapi spesies yang paling responsif terhadap perubahan." 185 | }, 186 | { 187 | "by": "Charles R. Swindoll", 188 | "quote": "Hidup adalah 10 persen yang terjadi kepada Anda, 90 persen bagaimana cara Anda menyikapinya." 189 | }, 190 | { 191 | "by": "Ching Hai", 192 | "quote": "Memperbaiki diri kita adalah memperbaiki dunia." 193 | }, 194 | { 195 | "by": "Ching Hai", 196 | "quote": "Jangan membeda-bedakan pekerjaan mana yang baik dan mana yang buruk. Masalah muncul jika kita membeda-bedakan dan memihak sesuatu." 197 | }, 198 | { 199 | "by": "Ching Hai", 200 | "quote": "Kita bekerja harus tanpa pamrih. Itu berlaku untuk segala pekerjaan. Pengabdian tanpa syarat adalah yang terbaik." 201 | }, 202 | { 203 | "by": "Ching Hai", 204 | "quote": "Kita harus menemukan kekuatan cinta dalam diri kita terlebih dahulu, barulah kita dapat benar-benar mencintai orang lain." 205 | }, 206 | { 207 | "by": "Ching Hai", 208 | "quote": "Carilah uang secukupnya saja untuk membiayai kehidupan, agar dapat menyisihkan waktu dan tenaga untuk melatih spiritual." 209 | }, 210 | { 211 | "by": "Christopher Colombus", 212 | "quote": "Harta benda tak membuat seseorang menjadi kaya raya, mereka hanya membuatnya lebih sibuk." 213 | }, 214 | { 215 | "by": "Cicero", 216 | "quote": "Hati yang penuh syukur, bukan saja merupakan kebajikan terbesar, melainkan induk dari segala kebajikan yang lain." 217 | }, 218 | { 219 | "by": "Cicero", 220 | "quote": "Hati yang penuh syukur, bukan saja merupakan kebajikan terbesar, melainkan juga induk dari segala kebajikan yang lain." 221 | }, 222 | { 223 | "by": "Clarence Darrow", 224 | "quote": "Kebebasan itu berasal dari manusia, tidak dari undang-undang atau institusi." 225 | }, 226 | { 227 | "by": "Confucius", 228 | "quote": "Hidup ini benar-benar sederhana, tapi kita malah bersikeras membuatnya menjadi rumit." 229 | }, 230 | { 231 | "by": "Confucius", 232 | "quote": "Kemana pun Anda pergi, pergilah dengan sepenuh hati." 233 | }, 234 | { 235 | "by": "Confucius", 236 | "quote": "Orang yang melakukan kesalahan dan tidak memperbaiki kesalahannya, melalakukan kesalahan yang lainnya." 237 | }, 238 | { 239 | "by": "Confucius", 240 | "quote": "Kebanggaan kita yang terbesar bukan karena tidak pernah gagal, tetapi bangkit kembali setiap kita jatuh." 241 | }, 242 | { 243 | "by": "Cowper", 244 | "quote": "Bunga yang tidak akan pernah layu dibumi adalah kebajikan." 245 | }, 246 | { 247 | "by": "Cynthia Ozick", 248 | "quote": "Untuk membayangkan hal yang tak dapat dibayangkan, dibutuhkan imajinasi yang luar biasa." 249 | }, 250 | { 251 | "by": "D. J. Schwartz", 252 | "quote": "Kesulitan apapun tidak tahan terhadap keuletan dan ketekunan. Tanpa keuletan, orang yang paling pintar dan paling berbakat sering gagal dalam hidupnya." 253 | }, 254 | { 255 | "by": "Dale Carnegie", 256 | "quote": "Satu-satunya cara agar kita memperoleh kasih sayang, adalah jangan menuntut agar kita dicintai, tetapi mulailah memberi kasih sayang kepada orang lain tanpa mengharapkan balasan." 257 | }, 258 | { 259 | "by": "Dale Carnegie", 260 | "quote": "Bila orang yang kuatir akan kekurangannya mau mensyukuri kekayaan yang mereka miliki, mereka akan berhenti kuatir." 261 | }, 262 | { 263 | "by": "Dale Carnegie", 264 | "quote": "Usahakan membentuk suatu hubungan \"kawat\" antara otak dan hati Anda." 265 | }, 266 | { 267 | "by": "Dale Carnegie", 268 | "quote": "Senyuman akan membuat kaya jiwa seseorang yang menerimanya, tanpa membuat miskin seseorang yang memberikannya." 269 | }, 270 | { 271 | "by": "Dale Carnegie", 272 | "quote": "Orang jarang sukses kecuali jika mereka senang dengan apa yang dikerjakannya." 273 | }, 274 | { 275 | "by": "David Livingston", 276 | "quote": "Saya akan pergi kemanapun selama itu arahnya ke depan." 277 | }, 278 | { 279 | "by": "David V. Ambrose", 280 | "quote": "Jika Anda punya kemauan untuk menang, Anda sudah mencapai separuh sukses. Jika Anda tidak punya kemauan untuk menang, Anda sudah mencapai separuh kegagalan." 281 | }, 282 | { 283 | "by": "David Weinbaum", 284 | "quote": "Rahasia menuju hidup kaya adalah mempunyai lebih banyak awal ketimbang akhir." 285 | }, 286 | { 287 | "by": "Desbarolles", 288 | "quote": "Kebenaran yang tidak dimengerti akan menjadi kesalahan." 289 | }, 290 | { 291 | "by": "Descrates", 292 | "quote": "Saya berpikir, karena itu saya ada." 293 | }, 294 | { 295 | "by": "Djamaludin Abassy", 296 | "quote": "Mental yang lemah lebih parah dari fisik yang lemah." 297 | }, 298 | { 299 | "by": "Donald Kendall", 300 | "quote": "Satu-satunya sukses yang diraih sebelum bekerja hanyalah ada di kamus saja." 301 | }, 302 | { 303 | "by": "Dr. Frank Crane", 304 | "quote": "Sahabat terbaik dan musuh terburuk kita adalah pikiran-pikiran kita. Pikiran dapat lebih baik dari seorang dokter atau seorang bankir atau seorang teman kepercayaan. Juga dapat lebih berbahaya dadi penjahat." 305 | }, 306 | { 307 | "by": "Dr. Ronald Niednagel", 308 | "quote": "Pergilah sejauh Anda bisa memandang, dan ketika Anda tiba disana, Anda akan memandang lebih jauh." 309 | }, 310 | { 311 | "by": "Dr.\u00a0Johnnetta Cole", 312 | "quote": "Jika kamu ingin pergi cepat, pergilah sendiri. Jika kamu ingin pergi jauh, pergilah bersama-sama." 313 | }, 314 | { 315 | "by": "Dwigt D. Esenhower", 316 | "quote": "Seorang intelektual tidak akan pernah mengatakan lebih daripada apa yang diketahuinya." 317 | }, 318 | { 319 | "by": "Earl Campbell", 320 | "quote": "Persoalan-persoalan adalah harga yang Anda bayar untuk kemajuan." 321 | }, 322 | { 323 | "by": "Earl Campbell", 324 | "quote": "Persoalan-persoalan adalah harga yang harus Anda bayar untuk kemajuan." 325 | }, 326 | { 327 | "by": "Edgar Alnsel", 328 | "quote": "Hidup manusia penuh dengan bahaya, tetapi disitulah letak daya tariknya." 329 | }, 330 | { 331 | "by": "Edmund Burke", 332 | "quote": "Anda tidak dapat merencanakan masa yang akan datang berdasarkan masa lalu." 333 | }, 334 | { 335 | "by": "Edward L. Curtis", 336 | "quote": "Optimisme yang tidak disertai dengan usaha hanya merupakan pemikiran semata yang tidak menghasilkan buah." 337 | }, 338 | { 339 | "by": "Edward de Bono", 340 | "quote": "Jika Anda termasuk orang yang senang menunggu datangnya peluang, Anda adalah bagian dari manusia pada umumnya." 341 | }, 342 | { 343 | "by": "Edy Murphy", 344 | "quote": "Aku menghabiskan usia 30-an untuk memperbaiki segala kesalahanku di usia 20-an." 345 | }, 346 | { 347 | "by": "Einstein", 348 | "quote": "Berusaha untuk tidak menjadi manusia yang berhasil tapi berusahalah menjadi manusia yang berguna." 349 | }, 350 | { 351 | "by": "Eisenhower", 352 | "quote": "Mulai sekarang kita tidak usah membuang-buang waktu barang semenit pun untuk memikirkan orang-orang yang tidak kita sukai." 353 | }, 354 | { 355 | "by": "Elanor Roosevelt", 356 | "quote": "Ketika kita berhenti membuat kontribusi, kita mulai mati." 357 | }, 358 | { 359 | "by": "Elbert Hubbad", 360 | "quote": "Kesalahan terbesar yang dibuat manusia dalam kehidupannya adalah terus-menerus merasa takut bahwa mereka akan melakukan kesalahan." 361 | }, 362 | { 363 | "by": "Elizabeth Browning", 364 | "quote": "Janganlah menyebut orang tidak bahagia sebelum dia mati. Jangan menilai pekerjaan seseorang sebelum pekerjaannya berakhir." 365 | }, 366 | { 367 | "by": "Emerson", 368 | "quote": "Percaya pada diri sendiri adalah rahasia utama mencapai sukses." 369 | }, 370 | { 371 | "by": "Engelbert Huperdinck", 372 | "quote": "Anda harus waspada dengan kesenangan. Pastikan bahwa Anda menikmatinya dan bukan dikendalikannya." 373 | }, 374 | { 375 | "by": "Erich Watson", 376 | "quote": "Kehilangan kekayaan masih dapat dicari kembali, kehilangan kepercayaan sulit didapatkan kembali." 377 | }, 378 | { 379 | "by": "Francois De La Roche", 380 | "quote": "Bila tidak mampu menemukan kedamaian dalam diri sendiri, tak ada gunanya mencari di tempat lain." 381 | }, 382 | { 383 | "by": "Francois De La Roche", 384 | "quote": "Kita terbiasa menyembunyikan diri dari orang lain, sampai akhirnya kita sendiri tersembunyi dari diri kita." 385 | }, 386 | { 387 | "by": "Francois Roche", 388 | "quote": "Kita lebih sibuk menyakinkan orang lain bahwa kita bahagia ketimbang benar-benar merasakan bahagia itu sendiri." 389 | }, 390 | { 391 | "by": "Frank Crane", 392 | "quote": "Anda mungkin ditipu jika terlalu mempercayai, tetapi hidup Anda akan tersiksa jika tidak cukup mempercayai." 393 | }, 394 | { 395 | "by": "Frank Giblin", 396 | "quote": "Jadilah diri Anda sendiri. Siapa lagi yang bisa melakukannya lebih baik ketimbang diri Anda sendiri?." 397 | }, 398 | { 399 | "by": "Franklin", 400 | "quote": "Bila Anda ingin dicintai, cintailah dan bersikaplah sebagai orang yang patut dicintai." 401 | }, 402 | { 403 | "by": "Fuller", 404 | "quote": "Contoh yang baik adalah nasihat terbaik." 405 | }, 406 | { 407 | "by": "Galileo Galilei", 408 | "quote": "Rumput yang paling kuat tumbuhnya terdapat di atas tanah yang paling keras." 409 | }, 410 | { 411 | "by": "Galileo Galilei", 412 | "quote": "Kamu tidak dapat mengajari seseorang apa pun, kamu hanya bisa membantunyanya menemukan apa yang ada dalam dirinya sendiri." 413 | }, 414 | { 415 | "by": "Gandhi", 416 | "quote": "Mereka yang berjiwa lemah tak akan mampu memberi seuntai maaf tulus. Pemaaf sejati hanya melekat bagi mereka yang berjiwa tangguh." 417 | }, 418 | { 419 | "by": "Gandhi", 420 | "quote": "Kebahagiaan tergantung pada apa yang dapat Anda berikan, bukan pada apa yang Anda peroleh." 421 | }, 422 | { 423 | "by": "Gen Collin Powel", 424 | "quote": "Tak ada rahasia untuk menggapai sukses. Sukses itu dapat terjadi karena persiapan, kerja keras dan mau belajar dari kegagalan." 425 | }, 426 | { 427 | "by": "George B. Shaw", 428 | "quote": "Hidup bukanlah tentang menemukan dirimu sendiri. Hidup adalah tentang menciptakan dirimu sendiri." 429 | }, 430 | { 431 | "by": "George III", 432 | "quote": "Saya lebih baik kehilangan mahkota daripada melakukan tindakan yang menurut saya memalukan." 433 | }, 434 | { 435 | "by": "George Santayana", 436 | "quote": "Tidak ada obat untuk kelahiran dan kematian, kecuali menikmati yang ada di antara keduanya." 437 | }, 438 | { 439 | "by": "George W.", 440 | "quote": "Harapan tak pernah meninggalkan kita, kita yang meninggalkan harapan." 441 | }, 442 | { 443 | "by": "Gilbert Chesterton", 444 | "quote": "Agar bisa menjadi cukup cerdas untuk meraih semua uang yang diinginkan, kita harus cukup bodoh untuk menginginkannya." 445 | }, 446 | { 447 | "by": "Gothe", 448 | "quote": "Semua pengetahuan yang kumiliki bisa orang lain peroleh, tapi hatiku hanyalah untuk diriku sendiri." 449 | }, 450 | { 451 | "by": "H. N. Spieghel", 452 | "quote": "Betapapun tingginya burung terbang, toh dia harus mencari dan mendapatkan makanannya di bumi juga." 453 | }, 454 | { 455 | "by": "H.L Hunt", 456 | "quote": "Tetapkan apa yang Anda inginkan. Putuskan Anda ingin menukarnya dengan apa. Tentukan prioritas dan laksanakan." 457 | }, 458 | { 459 | "by": "Hal Borland", 460 | "quote": "Melihat pohon, saya jadi mengerti tentang kesabaran. Memandang rumput, saya jadi menghargai ketekunan." 461 | }, 462 | { 463 | "by": "Hamka", 464 | "quote": "Kecantikan yang abadi terletak pada keelokan adab dan ketinggian ilmu seseorang, bukan terletak pada wajah dan pakaiannya." 465 | }, 466 | { 467 | "by": "Hamka", 468 | "quote": "Kita harus yakin bahwa apa yang ditentukan oleh Tuhan untuk kita, itulah yang terbaik." 469 | }, 470 | { 471 | "by": "Hamka", 472 | "quote": "Berani menegakkan keadilan, walaupun mengenai diri sendiri, adalah puncak segala keberanian." 473 | }, 474 | { 475 | "by": "Hamka", 476 | "quote": "Hawa nafsu membawa kesesatan dan tidak berpedoman. Sementara akal menjadi pedoman menuju keutamaan. Hawa nafsu menyuruhmu berangan-angan, tetapi akal menyuruhmu menimbang." 477 | }, 478 | { 479 | "by": "Harriet Braiker", 480 | "quote": "Berusaha berhasil untuk memotivasi dirimu, tapi berusaha untuk selalu sempurna akan membuat tertekan." 481 | }, 482 | { 483 | "by": "Helen Keller", 484 | "quote": "Kita tidak akan belajar berani dan sabar jika di dunia ini hanya ada kegembiraan." 485 | }, 486 | { 487 | "by": "Henri Ford", 488 | "quote": "Kegagalan hanyalah kesempatan untuk memulai lagi dengan lebih pandai." 489 | }, 490 | { 491 | "by": "Henry David Thoreau", 492 | "quote": "Kebaikan adalah satu-satunya investasi yang tidak akan merugikan." 493 | }, 494 | { 495 | "by": "Henry Ford", 496 | "quote": "Idealis adalah orang yang membantu orang lain untuk makmur." 497 | }, 498 | { 499 | "by": "Henry Ford", 500 | "quote": "Berpikir itu adalah pekerjaan yang berat di antara segala jenis pekerjaan. Itulah sebabnya sedikit sekali orang yang senang melakukannya." 501 | }, 502 | { 503 | "by": "Henry Ford", 504 | "quote": "Persaingan yang tujuannya hanya untuk bersaing, untuk mengalahkan orang lain, tak pernah mendatangkan banyak manfaat." 505 | }, 506 | { 507 | "by": "Henry Longfellow", 508 | "quote": "Kehidupan orang-orang besar mengingatkan kita bahwa kita bisa membuat kehidupan kita luhur." 509 | }, 510 | { 511 | "by": "Henry Thoreau", 512 | "quote": "Hidupku menjadi hiburanku dan tak hentinya memberikan kejutan. Hidupku bagaikan drama dengan begitu banyak babak tanpa adegan penutup." 513 | }, 514 | { 515 | "by": "Hubert Humprey", 516 | "quote": "Apa yang Anda lihat adalah apa yang Anda capai." 517 | }, 518 | { 519 | "by": "Imam Al-Ghazali", 520 | "quote": "Kebahagiaan terletak pada kemenangan memerangi hawa nafsu dan menahan keinginan yang berlebih-lebihan." 521 | }, 522 | { 523 | "by": "Imam Ghazali", 524 | "quote": "Caci maki dari seorang penjahat merupakan kehormatan bagi seorang yang jujur." 525 | }, 526 | { 527 | "by": "J.C.F von Schiller", 528 | "quote": "Orang yang terlalu banyak merenung akan meraih sedikit." 529 | }, 530 | { 531 | "by": "Jack Hyles", 532 | "quote": "Jangan gunakan orang-orang untuk membangun pekerjaan besar, gunakan pekerjaan Anda untuk membangun orang-orang besar." 533 | }, 534 | { 535 | "by": "Jackson Brown", 536 | "quote": "Kesalahaan terbesar yang mungkin Anda buat adalah mempercayai bahwa Anda bekerja untuk orang lain." 537 | }, 538 | { 539 | "by": "Jacques Audiberti", 540 | "quote": "Kepengecutan yang paling besar adalah ketika kita membuktikan kekuatan kita kepada kelemanan orang lain." 541 | }, 542 | { 543 | "by": "James Thurber", 544 | "quote": "Jangan lihat masa lalu dengan penyesalan, jangan pula lihat masa depan dengan ketakutan, tapi lihatlah sekitar Anda dengan penuh kesadaran." 545 | }, 546 | { 547 | "by": "Janet Erskine", 548 | "quote": "Jangan menunggu keadaan yang ideal. Jangan juga menunggu peluang-peluang terbaik. Keduanya tak akan pernah datang." 549 | }, 550 | { 551 | "by": "Jeff Goins", 552 | "quote": "Kebanyakan orang sukses yang saya kenal bukan orang yang sibuk, mereka orang yang focus." 553 | }, 554 | { 555 | "by": "Jerry West", 556 | "quote": "Anda tidak dapat melakukan banyak hal di hidup Anda, jika Anda hanya bekerja di hari-hari yang Anda rasakan baik." 557 | }, 558 | { 559 | "by": "Jim Rohn", 560 | "quote": "Tembok yang kita bangun untuk menghambat kesedihan, juga membuat kita tertutup dari kebahagiaan." 561 | }, 562 | { 563 | "by": "Jim Rohn", 564 | "quote": "Jika Anda tidak merancang hidup Anda sendiri, kemungkinan Anda akan menjalani rencana orang lain. Apa yang mereka rencanakan untuk Anda? Tidak banyak." 565 | }, 566 | { 567 | "by": "Jim Ryan", 568 | "quote": "Motivasi adalah sesuatu yang membuat Anda memulai. Kebiasaan adalah sesuatu yang membuat Anda melanjutkan." 569 | }, 570 | { 571 | "by": "Jimi Hendrix", 572 | "quote": "Ketika kekuatan akan cinta melebihi kecintaan akan kekuasaan, maka dunia pun menemukan kedamaian." 573 | }, 574 | { 575 | "by": "Jimmy Dean", 576 | "quote": "Aku tak bisa merubah arah angin, tapi aku bisa menyesuaikan layarku untuk tetap bisa mencapai tujuanku." 577 | }, 578 | { 579 | "by": "Joan Baez", 580 | "quote": "Kita tak bisa memilih bagaimana kita meninggal atau kapan. Kita hanya bisa memutuskan bagaimana kita hidup. Sekarang." 581 | }, 582 | { 583 | "by": "John B. Gough", 584 | "quote": "Jika Anda ingin sukses, Anda harus menciptakan peluang untuk diri sendiri." 585 | }, 586 | { 587 | "by": "John C. Maxwell", 588 | "quote": "Bekerja keras sekarang, merasakan hasilnya nanti; bermalas-malasan sekarang, merasakan akibatnya nanti." 589 | }, 590 | { 591 | "by": "John C. Maxwell", 592 | "quote": "Untuk menangani diri Anda sendiri, gunakan kepala Anda. Untuk menangani orang lain, gunakan hati Anda." 593 | }, 594 | { 595 | "by": "John C. Maxwell", 596 | "quote": "Bekerja keras sekarang, merasakannya nanti. Bermalas-malas sekarang, merasakan akibatnya nanti." 597 | }, 598 | { 599 | "by": "John Craig", 600 | "quote": "Tidak peduli seberapa banyak yang dapat Anda lakukan, tidak peduli seberapa menarik hati kepribadian Anda, Anda tidak dapat melangkah jauh jika Anda tidak dapat bekerja bersama orang lain." 601 | }, 602 | { 603 | "by": "John D. Rockefeller", 604 | "quote": "Orang termiskin adalah orang yang tidak mempunyai apa-apa kecuali uang." 605 | }, 606 | { 607 | "by": "John Gardne", 608 | "quote": "Jika kita melayani, maka hidup akan lebih berarti." 609 | }, 610 | { 611 | "by": "John Gray", 612 | "quote": "Sebenarnya semua kesulitan merupakan kesempatan bagi jiwa yang tumbuh." 613 | }, 614 | { 615 | "by": "John Manson", 616 | "quote": "Anda dilahirkan orisinal, jadi tidak perlu setengah mati meniru orang lain." 617 | }, 618 | { 619 | "by": "John Maxwell", 620 | "quote": "Seberapa jauh Anda gagal, tidak masalah, tetapi yang penting seberapa sering Anda bangkit kembali." 621 | }, 622 | { 623 | "by": "John Q. Adams", 624 | "quote": "Jika tindakan-tindakan Anda mengilhami orang lain untuk bermimpi lebih, belajar lebih, bekerja lebih, dan menjadi lebih baik, Anda adalah seorang pemimpin." 625 | }, 626 | { 627 | "by": "John Ruskin", 628 | "quote": "Saya yakin, ujian pertama bagi orang besar ialah kerendahan hati." 629 | }, 630 | { 631 | "by": "John Ruskin", 632 | "quote": "Penghargaan tertinggi untuk kerja keras seseorang bukanlah apa yang ia hasilkan, tapi bagaimana ia berkembang karenanya." 633 | }, 634 | { 635 | "by": "John Ruskin", 636 | "quote": "Penghargaan tertinggi untuk kerja keras seseorang bukanlah apa yang ia hasilkan, tetapi bagaimana ia berkembang karenanya." 637 | }, 638 | { 639 | "by": "John Wolfgang", 640 | "quote": "Perbuatan-perbuatan salah adalah biasa bagi manusia, tetapi perbuatan pura-pura itulah sebenarnya yang menimbulkan permusuhan dan pengkhianatan." 641 | }, 642 | { 643 | "by": "Joseph Addison", 644 | "quote": "Rahmat sering datang kepada kita dalam bentuk kesakitan, kehilangan dan kekecewaan; tetapi kalau kita sabar, kita segera akan melihat bentuk aslinya." 645 | }, 646 | { 647 | "by": "Julia Roberts", 648 | "quote": "Cinta sejati tidak datang kepadamu, tetapi harus datang dari dalam dirimu." 649 | }, 650 | { 651 | "by": "Junius", 652 | "quote": "Integritas seseorang diukur dengan tingkah lakunya bukan profesinya." 653 | }, 654 | { 655 | "by": "Kahlil Gibran", 656 | "quote": "Kita berdoa kalau kesusahan dan membutuhkan sesuatu, mestinya kita juga berdoa dalam kegembiraan besar dan saat rezeki melimpah." 657 | }, 658 | { 659 | "by": "Kahlil Gibran", 660 | "quote": "Untuk memahami hati dan pikiran seseorang, jangan lihat apa yang sudah dia capai, tapi lihat apa yang dia cita-citakan." 661 | }, 662 | { 663 | "by": "Keri Russel", 664 | "quote": "Kadang kala, justru keputusan kecil yang akan mampu merubah hidup kita selamanya." 665 | }, 666 | { 667 | "by": "Knute Rockne", 668 | "quote": "Apabila perjalanan menjadi sulit, orang ulet akan berjalan terus." 669 | }, 670 | { 671 | "by": "Kong Hu Cu", 672 | "quote": "Orang yang berbudi tinggi selalu berpedoman pada keadilan dan selalu berusaha menjalankan kewajiban." 673 | }, 674 | { 675 | "by": "Konrad Adenauer", 676 | "quote": "Kita semua hidup di bawah langit yang sama, tetapi tidak semua orang punya cakrawala yang sama." 677 | }, 678 | { 679 | "by": "Kung Fu-Tze", 680 | "quote": "Ia yang bijak akan merasa malu, jika kata-katanya lebih baik daripada tindakannya." 681 | }, 682 | { 683 | "by": "Lao Tzu", 684 | "quote": "Saat sadar bahwa kau tidak kekurangan suatu apa pun, seisi dunia menjadi milikku." 685 | }, 686 | { 687 | "by": "Lao Tzu", 688 | "quote": "Saat sadar bahwa kau tidak kekurangan suatu apa pun, seisi dunia menjadi milikmu." 689 | }, 690 | { 691 | "by": "Les Brown", 692 | "quote": "Terima tanggung jawab untuk diri Anda sendiri. Sadari bahwa hanya Anda sendiri, bukan orang lain, yang bisa membuat Anda pergi ke tempat yang Anda inginkan." 693 | }, 694 | { 695 | "by": "Louis Gittner", 696 | "quote": "Meski yang kita hadapi adalah jalan buntu, namun cinta akan membangun jalan layang di atasnya." 697 | }, 698 | { 699 | "by": "Louis Pasteur", 700 | "quote": "Tahukah Anda rahasia sukses saya dalam mencapai tujuan? Cuma keuletan, tak lebih dan tak kurang." 701 | }, 702 | { 703 | "by": "Mahatma Gandhi", 704 | "quote": "Kepuasan terletak pada usaha, bukan pada hasil. Berusaha dengan keras adalah kemenangan yang hakiki." 705 | }, 706 | { 707 | "by": "Marcel Ayme", 708 | "quote": "Kerendahan hati merupakan ruang tunggu bagi kesempurnaan." 709 | }, 710 | { 711 | "by": "Maria Sharapova", 712 | "quote": "Saya belajar banyak dari kekalahan. Dan kekalahan-kekalahan itu, membuat saya semakin tabah." 713 | }, 714 | { 715 | "by": "Mark Cuban", 716 | "quote": "Buatlah usaha Anda berhasil dengan satu-satunya cara: kerja keras!." 717 | }, 718 | { 719 | "by": "Mark Twain", 720 | "quote": "Kebaikan adalah bahasa yang dapat didengar si tuli dan bisa dilihat si buta." 721 | }, 722 | { 723 | "by": "Marsha Sinetar", 724 | "quote": "Lakukan apa yang Anda senangi, uang akan mengikuti." 725 | }, 726 | { 727 | "by": "Martin Luther King", 728 | "quote": "Tak ada waktu yang tidak tepat untuk melakukan sesuatu yang benar." 729 | }, 730 | { 731 | "by": "Mary McCarthy", 732 | "quote": "Kendatipun Anda berada di jalur yang tepat, Anda akan tetap terkejar jika hanya duduk-duduk saja disana." 733 | }, 734 | { 735 | "by": "Maxim Gorky", 736 | "quote": "Kebahagiaan selalu tampak kecil saat berada dalam genggaman. Tapi coba lepaskan dan Anda akan langsung tahu, betapa besar dan berhargannya kebahagiaan." 737 | }, 738 | { 739 | "by": "Mery Hemingway", 740 | "quote": "Latih diri Anda untuk tidak khawatir. Kekhawatiran tak pernah memperbaiki apa-apa." 741 | }, 742 | { 743 | "by": "Michael Drury", 744 | "quote": "Kematangan bukanlah suatu keadaan yang dicapai dengan usia. Dia merupakan perkembangan dari cinta, belajar, membaca dan berpikir hingga menghasilkan kemampuan." 745 | }, 746 | { 747 | "by": "Michael Pritchard", 748 | "quote": "Anda berhenti tertawa bukan karena bertambah tua. Sebaliknya Anda bertambah tua justru karena berhenti tertawa." 749 | }, 750 | { 751 | "by": "Miguel de Cervantes", 752 | "quote": "Pepatah adalah kalimat singkat berdasarkan pengalaman panjang." 753 | }, 754 | { 755 | "by": "Miguel de Unamuno", 756 | "quote": "Tidak dicintai orang lain memang menyedihkan, tapi lebih menyedihkan lagi kalau tidak bisa mencintai orang lain." 757 | }, 758 | { 759 | "by": "N. H. Casson", 760 | "quote": "Kemiskinan jiwa lebih mengerikan daripada kemiskinan jasmani atau materi." 761 | }, 762 | { 763 | "by": "Natalie Portman", 764 | "quote": "Anda belum bisa dibilang kaya sampai Anda memiliki sesuatu yang tidak dapat dibeli uang." 765 | }, 766 | { 767 | "by": "Nelson Mandela", 768 | "quote": "Pendidikan adalah senjata paling ampuh dimana kau dapat menggunakannya untuk merubah dunia." 769 | }, 770 | { 771 | "by": "Norman Peale", 772 | "quote": "Campakanlah jauh-jauh pikiran murung dan kesal itu, lalu bangkitkanlah." 773 | }, 774 | { 775 | "by": "Nunse", 776 | "quote": "Bukanlah yang kuat, tetapi yang uletlah yang menjadikan mereka manusia yang besar." 777 | }, 778 | { 779 | "by": "O. S. Marden", 780 | "quote": "Kemajuan adalah hasil dari memusatkan seluruh kekuatan jiwa dan pikiran pada cita-cita yang dituju." 781 | }, 782 | { 783 | "by": "Oliver W. Holmes", 784 | "quote": "Semakin lama kita hidup, semakin kita menemukan bahwa kita mirip dengan orang lain." 785 | }, 786 | { 787 | "by": "Oprah Winfrey", 788 | "quote": "Melakukan yang terbaik pada saat ini akan menempatkan Anda ke tempat terbaik pada saat berikutnya." 789 | }, 790 | { 791 | "by": "Oscar Wilde", 792 | "quote": "Jika seseorang menyatakan kebenaran, dia yakin; cepat atau lambat; akan mendapatkannya." 793 | }, 794 | { 795 | "by": "Pablo Picasso", 796 | "quote": "Bila semangat Anda menurun, lakukanlah sesuatu. Kalau Anda telah melakukan sesuatu keadaan tidak berubah, lakukanlah sesuatu yang berbeda." 797 | }, 798 | { 799 | "by": "Paul Galvin", 800 | "quote": "Jangan takut dengan kesalahan. Kebijaksanaan biasanya lahir dari kesalahan." 801 | }, 802 | { 803 | "by": "Paul Harvey", 804 | "quote": "Saya tidak pernah melihat suatu monumen didirikan bagi orang pesimis." 805 | }, 806 | { 807 | "by": "Pepatah Cina", 808 | "quote": "Beranilah menyadari kesalahan dan mulai lagi." 809 | }, 810 | { 811 | "by": "Pepatah Cina", 812 | "quote": "Benar jadi berani." 813 | }, 814 | { 815 | "by": "Pepatah Cina", 816 | "quote": "Orang yang bertanya, bodoh dalam 5 menit. Dan orang yang tidak bertanya akan tetap bodoh untuk selamanya." 817 | }, 818 | { 819 | "by": "Pepatah Cina", 820 | "quote": "Bila saya mendengar, saya akan lupa. Setelah melihat saya bisa mengerti. Dan setelah mengerjakan, barulah saya bisa memahami." 821 | }, 822 | { 823 | "by": "Pepatah Cina", 824 | "quote": "Orang yang tersenyum selalu lebih kuat dari orang yang marah." 825 | }, 826 | { 827 | "by": "Pepatah Cina", 828 | "quote": "Orang yang memindahkan gunung memulai dengan memindahkan batu-batu kecil." 829 | }, 830 | { 831 | "by": "Pepatah Inggris", 832 | "quote": "Orang yang mencari masalah akan selalu mendapatkannya." 833 | }, 834 | { 835 | "by": "Pepatah Inggriss", 836 | "quote": "Keterampilan dan keyakinan merupakan pasukan bersenjata yang tidak dapat dikalahkan." 837 | }, 838 | { 839 | "by": "Pepatah Jepang", 840 | "quote": "Sebatang anak panah mudah dipatahkan, tetapi tidak demikian dengan sepuluh anak panah yang disatukan." 841 | }, 842 | { 843 | "by": "Pepatah Jepang", 844 | "quote": "Visi tanpa aksi adalah mimpi di siang bolong. Aksi tanpa visi adalah mimpi buruk." 845 | }, 846 | { 847 | "by": "Pepatah Jerman", 848 | "quote": "Orang yang tak pernah mencicipi pahit tak akan tahu apa itu manis." 849 | }, 850 | { 851 | "by": "Pepatah Latin", 852 | "quote": "Dengan belajar Anda bisa mengajar. Dengan mengajar, Anda belajar." 853 | }, 854 | { 855 | "by": "Pepatah Persia", 856 | "quote": "Saya menangis karena tak punya sepatu, sampai saya melihat orang tak punya kaki." 857 | }, 858 | { 859 | "by": "Pepatah Roma", 860 | "quote": "Kesengsaraan menghasilkan ketekunan. Ketekunan menghasilkan watak, dan watak menghasilkan harapan." 861 | }, 862 | { 863 | "by": "Pepatah Skotlandia", 864 | "quote": "Bila kemauan siap, kaki menjadi ringan." 865 | }, 866 | { 867 | "by": "Pepatah Spanyol", 868 | "quote": "Mengenal diri sendiri adalah awal dari perbaikan diri." 869 | }, 870 | { 871 | "by": "Pepatah Tibet", 872 | "quote": "Jangan meremehkan raja yang picik, seperti halnya jangan meremehkan sungai yang kecil." 873 | }, 874 | { 875 | "by": "Pepatah Tibet", 876 | "quote": "Apabila seseorang mengajarkan sesuatu, dia sendiri harus melaksanakan ajaran itu." 877 | }, 878 | { 879 | "by": "Peter Sinclair", 880 | "quote": "Kehidupan yang hebat adalah kulminasi dari pemikiran-pemikiran hebat disertai dengan tindakan-tindakan hebat." 881 | }, 882 | { 883 | "by": "Phyllis Bottome", 884 | "quote": "Ada dua cara mengatasi kesulitan, Anda mengubah kesulitan-kesulitan atau Anda mengubah diri sendiri untuk mengatasinya." 885 | }, 886 | { 887 | "by": "Plato", 888 | "quote": "Orang bijak berbicara karena mereka mempunyai sesuatu untuk dikatakan, orang bodoh berbicara karena mereka ingin mengatakan sesuatu." 889 | }, 890 | { 891 | "by": "Plato", 892 | "quote": "Orang bijak berbicara karena ia memiliki sesuatu untuk dikatakan. Orang bodoh berbicara karena ia atau dia harus mengatakan sesuatu." 893 | }, 894 | { 895 | "by": "Plato", 896 | "quote": "Berbuat tidak adil lebih memalukan daripada menderita ketidakadilan." 897 | }, 898 | { 899 | "by": "Plato", 900 | "quote": "Siapa yang tidak bisa memimpin dirinya sendiri, tidak akan bisa memimpin orang." 901 | }, 902 | { 903 | "by": "Plautus", 904 | "quote": "Kesabaran adalah obat terbaik untuk semua masalah." 905 | }, 906 | { 907 | "by": "Plautus", 908 | "quote": "Jauh lebih mudah memulai secara baik daripada mengakhiri secara baik." 909 | }, 910 | { 911 | "by": "Pliny The Elder", 912 | "quote": "Harapan adalah tiang yang menyangga dunia." 913 | }, 914 | { 915 | "by": "R. A. Kartini", 916 | "quote": "Kemenangan gemilang tidak diperoleh dari medan pertempuran saja, tetapi sering diperoleh dari hati." 917 | }, 918 | { 919 | "by": "R. Browning", 920 | "quote": "kita jatuh untuk bangun, berhenti untuk berjalan, dan tidur untuk bangun." 921 | }, 922 | { 923 | "by": "R. W. Shephred", 924 | "quote": "Kamu harus menghadapi depresi, sama seperti kamu menghadapi seekor harimau." 925 | }, 926 | { 927 | "by": "R.H. Grant", 928 | "quote": "Jika Anda mempekerjakan orang-orang yang lebih pintar dari Anda, Anda membuktikan Anda lebih pintar dari mereka." 929 | }, 930 | { 931 | "by": "Rabbi Schachtel", 932 | "quote": "Kebahagiaan bukanlah memiliki apa yang kita inginkan, melainkan menginginkan apa yang kita miliki." 933 | }, 934 | { 935 | "by": "Ralph W. Emerson", 936 | "quote": "Satu ons aksi jauh lebih berharga daripada satu ton teori." 937 | }, 938 | { 939 | "by": "Ralph W. Emerson", 940 | "quote": "Seseorang itu sukses besar jika dia sadar, kegagalan-kegagalannya adalah persiapan untuk kemenangan-kemenangannya." 941 | }, 942 | { 943 | "by": "Ralph Waldo Emerson", 944 | "quote": "Kedamaian tidak terdapat di dunia luar, melainkan terdapat dalam jiwa manusia itu sendiri." 945 | }, 946 | { 947 | "by": "Ralph Waldo Emerson", 948 | "quote": "Percayalah kepada orang lain, dan mereka akan tulus kepada Anda. Perlakukan mereka seperti orang besar dan mereka akan memperlihatkan dirinya sebagai orang besar." 949 | }, 950 | { 951 | "by": "Rene Descartes", 952 | "quote": "Tidak cukup hanya punya otak yang baik. Yang penting adalah menggunakannya secara baik." 953 | }, 954 | { 955 | "by": "Richard Bach", 956 | "quote": "Tanyakan pada diri sendiri rahasia sukses. Dengarkan jawaban Anda, dan lakukan." 957 | }, 958 | { 959 | "by": "Richard C. Miller", 960 | "quote": "Jika rumput tetangga lebih hijau, bersyukurlah Anda masih bisa berpijak di tanah untuk melihatnya." 961 | }, 962 | { 963 | "by": "Robert Collier", 964 | "quote": "Kesempatan Anda untuk sukses di setiap kondisi selalu dapat diukur oleh seberapa besar kepercayaan Anda pada diri sendiri." 965 | }, 966 | { 967 | "by": "Robert F. Kennedy", 968 | "quote": "Kemajuan merupakan kata-kata merdu, tetapi perubahanlah penggerakknya dan perubahan mempunyai banyak musuh." 969 | }, 970 | { 971 | "by": "Robert Frost", 972 | "quote": "Dua jalan dipisahkan pohon, dan saya mengambil jalan yang jarang ditempuh orang. Dan itulah yang membuat perubahan." 973 | }, 974 | { 975 | "by": "Robert Frost", 976 | "quote": "Alasan mengapa kecemasan membunuh lebih banyak orang dibanding kerja adalah, lebih banyak orang cemas dibanding bekerja." 977 | }, 978 | { 979 | "by": "Robert G. Ingersoll", 980 | "quote": "Sedikit orang kaya yang memiliki harta. Kebanyakan harta yang memiliki mereka." 981 | }, 982 | { 983 | "by": "Robert Half", 984 | "quote": "Ketekunan bisa membuat yang tidak mungkin jadi mungkin, membuat kemungkinan jadi kemungkinan besar, dan kemungkinan besar menjadi pasti." 985 | }, 986 | { 987 | "by": "Robert S. Lynd", 988 | "quote": "Hanya ikan yang bodoh yang bisa dua kali kena pancing dengan umpan yang sama." 989 | }, 990 | { 991 | "by": "Robert Von Hartman", 992 | "quote": "Ambisi seperti air laut, semakin banyak orang meminumnya semakin orang menjadi haus." 993 | }, 994 | { 995 | "by": "Robinsori", 996 | "quote": "Cemas dan ketakutan adalah akibat kebodohan dan keraguan." 997 | }, 998 | { 999 | "by": "Romand Rolland", 1000 | "quote": "Pahlawan adalah seseorang yang melakukan apa yang mampu dia lakukan." 1001 | }, 1002 | { 1003 | "by": "Roosevelt", 1004 | "quote": "Jika Anda ingin menjadi orang besar, janganlah suka beromong besar, kerjakanlah hal-hal yang kecil dahulu." 1005 | }, 1006 | { 1007 | "by": "Ross Cooper", 1008 | "quote": "Satu-satunya cara untuk mengubah hidup kita adalah dengan mengubah pikiran kita." 1009 | }, 1010 | { 1011 | "by": "Ruth P. Freedman", 1012 | "quote": "Perubahan terjadi ketika seseorang menjadi dirinya sendiri, bukan ketika ia mencoba menjadi orang lain." 1013 | }, 1014 | { 1015 | "by": "Salanter Lipkin", 1016 | "quote": "Perbaiki diri Anda, tetapi jangan jatuhkan orang lain." 1017 | }, 1018 | { 1019 | "by": "Samuel Smiles", 1020 | "quote": "Cara tercepat untuk menuntaskan banyak hal adalah dengan menyelesaikannya satu demi satu." 1021 | }, 1022 | { 1023 | "by": "Satya Sai Baba", 1024 | "quote": "Dua hal yang harus dilupakan, kebaikan yang telah kita lakukan kepada orang lain dan kesalahan orang lain kepada kita." 1025 | }, 1026 | { 1027 | "by": "Scott Fitzgerald", 1028 | "quote": "Ingatlah, jika Anda menutup mulut sebenarnya Anda telah melakukan pilihan." 1029 | }, 1030 | { 1031 | "by": "Seneca", 1032 | "quote": "Hati manusia tidak akan pernah tenteram sebelum berdamai dengan diri sendiri." 1033 | }, 1034 | { 1035 | "by": "Seneca", 1036 | "quote": "Hidup berarti berjuang. Hidup nikmat tanpa badai topan adalah laksana laut yang mati." 1037 | }, 1038 | { 1039 | "by": "Shackespeare", 1040 | "quote": "Kesedihan hanya bisa ditanggulangi oleh orang yang mengalaminya sendiri." 1041 | }, 1042 | { 1043 | "by": "Shirley Briggs", 1044 | "quote": "Beranikan diri untuk menjadi dirimu sendiri, karena kita bisa melakukan hal itu lebih baik daripada orang lain." 1045 | }, 1046 | { 1047 | "by": "Soe Hok Gie", 1048 | "quote": "Lebih baik diasingkan daripada menyerah kepada kemunafikan." 1049 | }, 1050 | { 1051 | "by": "Soemantri Metodipuro", 1052 | "quote": "Langkah pertama untuk memilih keyakinan pada diri sendiri adalah mengenal diri kita sendiri." 1053 | }, 1054 | { 1055 | "by": "Sophocles", 1056 | "quote": "Bila seseorang kehilangan segala sumber kebahagiaan, dia tidak lagi hidup, tapi mayat yang bernafas." 1057 | }, 1058 | { 1059 | "by": "St. Jerome", 1060 | "quote": "Baik, lebih baik, terbaik. Jangan pernah berhenti sampai baik menjadi lebih baik, dan lebih baik menjadi terbaik." 1061 | }, 1062 | { 1063 | "by": "Stephen R. Covey", 1064 | "quote": "Motivasi adalah api dari dalam. Jika orang lain mencoba menyalakannya untuk Anda, kemungkinan apinya hanya menyala sebentar." 1065 | }, 1066 | { 1067 | "by": "Steve Jobs", 1068 | "quote": "Saya bangga, baik pada hal yang tidak kami lakukan maupun pada hal yang kami lakukan." 1069 | }, 1070 | { 1071 | "by": "Sujiwo Tejo", 1072 | "quote": "Cinta tak perlu pengorbanan. Pada saat kau merasa berkorban, pada saat itu cintamu mulai pudar." 1073 | }, 1074 | { 1075 | "by": "Sydney Harris", 1076 | "quote": "Ancaman nyata sebenarnya bukan pada saat komputer mulai bisa berpikir seperti manusia, tetapi ketika manusia mulai berpikir seperti komputer." 1077 | }, 1078 | { 1079 | "by": "Theodore Rosevelt", 1080 | "quote": "Lakukan apa yang dapat Anda lakukan dengan apa yang Anda miliki dan tempat Anda berada." 1081 | }, 1082 | { 1083 | "by": "Thomas Alva Edison", 1084 | "quote": "Banyak kegagalan dalam ini dikarenakan orang-orang tidak menyadari betapa dekatnya mereka dengan keberhasilan saat mereka menyerah." 1085 | }, 1086 | { 1087 | "by": "Thomas Carlyle", 1088 | "quote": "Pergilah sejauh mungkin yang bisa Anda lihat dan Anda akan bisa melihat lebih jauh." 1089 | }, 1090 | { 1091 | "by": "Thomas Fuller", 1092 | "quote": "Orang yang tidak bisa memaafkan orang lain sama saja dengan orang yang memutuskan jembatan yang harus dilaluinya, karena semua orang perlu dimaafkan." 1093 | }, 1094 | { 1095 | "by": "Thomas Fuller", 1096 | "quote": "Menyaksikan adalah mempercayai, tapi merasakan adalah kebenaran." 1097 | }, 1098 | { 1099 | "by": "Thomas Jefferson", 1100 | "quote": "Dalam hal prinsip, usahakan kukuh seperti batu karang. Dalam hal selera, coba berenang mengikuti arus." 1101 | }, 1102 | { 1103 | "by": "Tung Desem Waringin", 1104 | "quote": "Setiap badai pasti berlalu dan saya akan tumbuh semakin kuat." 1105 | }, 1106 | { 1107 | "by": "Tyler Durden", 1108 | "quote": "Setelah kehilangan segalanya, barulah kita bebas melakukan apa saja." 1109 | }, 1110 | { 1111 | "by": "Umar bin Khattab", 1112 | "quote": "Raihlah ilmu dan untuk meraih ilmu belajarlah untuk tenang dan sabar." 1113 | }, 1114 | { 1115 | "by": "Vicosta Efran", 1116 | "quote": "Hiduplah seperti lilin yang menerangi orang lain. Jangan hidup seperti duri yang mencucuk diri dan menyakiti orang lain." 1117 | }, 1118 | { 1119 | "by": "Victor Hugo", 1120 | "quote": "Kesedihan adalah buah. Tuhan tak pernah membiarkannya tumbuh dicabang yang terlalu lemah untuk menanggungnya." 1121 | }, 1122 | { 1123 | "by": "Victor Hugo", 1124 | "quote": "Kebahagian tertinggi dalam kehidupan adalah kepastian bahwa Anda dicintai apa adanya, atau lebih tepatnya dicintai walaupun Anda seperti diri Anda adanya." 1125 | }, 1126 | { 1127 | "by": "Victor Hugo", 1128 | "quote": "Masalahnya bukan kurangnya tenaga, tetapi kurangnya daya kemauan." 1129 | }, 1130 | { 1131 | "by": "Vince Lambardi", 1132 | "quote": "Kemenangan bukanlah segala-galanya, tetapi perjuangan untuk menang adalah segala-galanya." 1133 | }, 1134 | { 1135 | "by": "Virginia Wolf", 1136 | "quote": "Jika Anda tak bisa mengatakan hal yang benar dari diri Anda, maka Anda pun tak bisa mengatakan hal yang benar dari orang lain." 1137 | }, 1138 | { 1139 | "by": "W. Camden", 1140 | "quote": "Burung yang terbang pagi akan memperoleh cacing paling banyak." 1141 | }, 1142 | { 1143 | "by": "Walt Disney", 1144 | "quote": "Cara untuk memulai adalah berhenti berbicara dan mulai lakukan sesuatu." 1145 | }, 1146 | { 1147 | "by": "Walter Cronkite", 1148 | "quote": "Sukses akan lebih permanen jika Anda meraihnya tanpa menghancurkan prinsip-prinsip Anda." 1149 | }, 1150 | { 1151 | "by": "Warren Buffett", 1152 | "quote": "Dari dulu saya selalu yakin saya akan kaya. Saya kira saya tak pernah meragukannya, satu menit pun." 1153 | }, 1154 | { 1155 | "by": "Whitney Young", 1156 | "quote": "Lebih baik menyiapkan diri untuk sebuah peluang dan tidak mendapatkannya daripada punya peluang dan tidak menyiapkan diri." 1157 | }, 1158 | { 1159 | "by": "William A. W.", 1160 | "quote": "Satu-satunya yang bisa menghalangi kita adalah keyakinan yang salah dan sikap yang negatif." 1161 | }, 1162 | { 1163 | "by": "William Allen White", 1164 | "quote": "Saya tidak takut pada hari esok karena saya sudah melihat hari kemarin dan saya mencintai hari ini." 1165 | }, 1166 | { 1167 | "by": "William Arthur", 1168 | "quote": "Guru yang biasa-biasa, berbicara. Guru yang bagus, menerangkan. Guru yang hebat, mendemonstrasikan. Guru yang agung, memberi inspirasi." 1169 | }, 1170 | { 1171 | "by": "William F. Halsey", 1172 | "quote": "Semua masalah menjadi lebih kecil jika Anda tidak mengelaknya, tapi menghadapinya." 1173 | }, 1174 | { 1175 | "by": "William J. Johnston", 1176 | "quote": "Perubahan yang paling bermakna dalam hidup adalah perubahan sikap. Sikap yang benar akan menghasilkan tindakan yang benar." 1177 | }, 1178 | { 1179 | "by": "William James", 1180 | "quote": "Jika Anda harus membuat pilihan dan Anda tidak melakukannya, itu saja sudah pilihan." 1181 | }, 1182 | { 1183 | "by": "William James", 1184 | "quote": "Percaya bahwa hidup itu berharga, dan kepercayaan Anda akan membantu menciptakan hidup yang berharga." 1185 | }, 1186 | { 1187 | "by": "William Ralph Inge", 1188 | "quote": "Kuatir sama seperti membayar bunga untuk uang yang mungkin tak pernah Anda pinjam." 1189 | }, 1190 | { 1191 | "by": "William Shakespeare", 1192 | "quote": "Jangan sering menyalakan api kebencian terhadap musuhmu, karena nanti akan membakar dirimu sendiri." 1193 | }, 1194 | { 1195 | "by": "William Shakespeare", 1196 | "quote": "Bila kamu jujur kepada dirimu sendiri, bagai siang pasti berganti malam, kamu takkan pernah berdusta kepada orang lain." 1197 | }, 1198 | { 1199 | "by": "William Shakespeare", 1200 | "quote": "Kutu yang berani adalah kutu yang bisa berani mendapatkan sarapannya pada bibir seekor singa." 1201 | }, 1202 | { 1203 | "by": "Winston Churchill", 1204 | "quote": "Kita menyambung hidup dengan apa yang kita peroleh, tapi kita menghadirkan kehidupkan dengan apa yang kita berikan." 1205 | }, 1206 | { 1207 | "by": "Wolfgang von Gothe", 1208 | "quote": "Pengetahuan tidaklah cukup, kita harus mengamalkannya. Niat tidak cukup, kita harus melakukannya." 1209 | }, 1210 | { 1211 | "by": "Zachary Scott", 1212 | "quote": "Ketika Anda bertambah tua, Anda akan menemukan satu-satunya hal yang Anda sesali adalah hal-hal yang tidak Anda lakukan." 1213 | }, 1214 | { 1215 | "by": "Zig Zaglar", 1216 | "quote": "Batu fondasi untuk sukses yang seimbang adalah kejujuran, watak, integritas, iman, cinta dan kesetiaan." 1217 | }, 1218 | { 1219 | "by": "Zig Zaglar", 1220 | "quote": "Kebanyakan orang gagal meraih cita-citanya bukan karena mereka tidak mampu, tetapi karena tidak berkomitmen." 1221 | }, 1222 | { 1223 | "by": "Zig Zaglar", 1224 | "quote": "Kita tidak harus hebat saat memulai, tapi kita harus memulai untuk menjadi hebat." 1225 | } 1226 | ] 1227 | -------------------------------------------------------------------------------- /lib/rule.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /lib/sticker.js: -------------------------------------------------------------------------------- 1 | const fs = ('fs-extra') 2 | 3 | module.exports = { stickerHandler } 4 | async function stickerHandler(message, client, isAdmin, isBotGroupAdmins, adminList, color, time) { 5 | 6 | console.log(color('[STIK]'), color(time, 'yellow'), 'from', color(message.sender.pushname), 'in', color(message['name'])) 7 | if ((isAdmin) && (isBotGroupAdmins) && (message.type == 'sticker') && (message.filehash == 'XM1N7CiW1xxkL8Oi6sCD2+xECehai2DI4bE37I7PIhw=')) return await client.setGroupToAdminsOnly(message.from, true) 8 | if ((isAdmin) && (isBotGroupAdmins) && (message.type == 'sticker') && (message.filehash == 'toFAeTndmqlzGRdBUY4K2EAnLdwCqgGF7nmMiaAX2Y0=')) return await client.setGroupToAdminsOnly(message.from, false) 9 | if ((isAdmin) && (message.quotedMsg) && (isBotGroupAdmins) && (message.filehash == 'UWK/E5Jf/OLg+zFgICX3bwXc0iXfPEZ+PDDf0C+3Qvw=') && (adminList.includes(message.quotedMsgObj.sender.id) == false)) return await client.removeParticipant(message.from, message.quotedMsgObj.sender.id) 10 | if ((isAdmin) && (message.quotedMsg) && (isBotGroupAdmins) && (message.filehash == 'BfppV7tESHi/QmrxuJG4WdXKYsO3lNTiXf0aBfasJ4E=') && (adminList.includes(message.quotedMsgObj.sender.id) == false)) return await client.promoteParticipant(message.from, message.quotedMsgObj.sender.id) 11 | if ((isAdmin) && (message.quotedMsg) && (isBotGroupAdmins) && (message.filehash == 'mHbEuCjA+RVWftr2AFuLieAJcyHYZnibd7waZPqvDNQ=') && (adminList.includes(message.quotedMsgObj.sender.id))) return await client.demoteParticipant(message.from, message.quotedMsgObj.sender.id) 12 | 13 | } 14 | -------------------------------------------------------------------------------- /lib/welcome.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /media/audio/hello.txt: -------------------------------------------------------------------------------- 1 | SOMNATH DAS -------------------------------------------------------------------------------- /media/sticker/data.exif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SomnathDas/Whatsapp-Botto-Re/4e29c218b234c06d678c6004f1b0f36e76d11cef/media/sticker/data.exif -------------------------------------------------------------------------------- /media/sticker/hello.txt: -------------------------------------------------------------------------------- 1 | SOMNATH DAS -------------------------------------------------------------------------------- /media/tts/restts.mp3: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /media/video/hello.txt: -------------------------------------------------------------------------------- 1 | SOMNATH DAS -------------------------------------------------------------------------------- /msgHandler.js: -------------------------------------------------------------------------------- 1 | const { decryptMedia } = require('@open-wa/wa-decrypt') 2 | const fs = require('fs-extra') 3 | const axios = require('axios') 4 | const moment = require('moment-timezone') 5 | const sendSticker = require('./sendSticker') 6 | const get = require('got') 7 | const { RemoveBgResult, removeBackgroundFromImageBase64, removeBackgroundFromImageFile } = require('remove.bg') 8 | const color = require('./lib/color') 9 | const { liriklagu, quotemaker, wall } = require('./lib/functions') 10 | const { help, info, } = require('./lib/help') 11 | const msgFilter = require('./lib/msgFilter') 12 | const akaneko = require('akaneko'); 13 | const { exec } = require('child_process') 14 | const fetch = require('node-fetch'); 15 | const ruleArr = JSON.parse(fs.readFileSync('./lib/rule.json')) 16 | const bent = require('bent') 17 | const waifulist = require("public-waifulist") 18 | const waifuclient = new waifulist() 19 | const pokefunc = require('./lib/poke.js') 20 | const pkarrs = JSON.parse(fs.readFileSync('./lib/pokedata/pkmnz.json')) 21 | const wel = JSON.parse(fs.readFileSync('./lib/welcome.json')) 22 | const nsfwgrp = JSON.parse(fs.readFileSync('./lib/nsfw.json')) 23 | const ban = JSON.parse(fs.readFileSync('./lib/banned.json')) 24 | const errorurl = 'https://steamuserimages-a.akamaihd.net/ugc/954087817129084207/5B7E46EE484181A676C02DFCAD48ECB1C74BC423/?imw=512&&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=false' 25 | const errorurl2 = 'https://steamuserimages-a.akamaihd.net/ugc/954087817129084207/5B7E46EE484181A676C02DFCAD48ECB1C74BC423/?imw=512&&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=false' 26 | const { profile } = require('./lib/profile.js') 27 | const sticker = require('./lib/sticker.js') 28 | const stickerArr = ['XM1N7CiW1xxkL8Oi6sCD2+xECehai2DI4bE37I7PIhw=', 'toFAeTndmqlzGRdBUY4K2EAnLdwCqgGF7nmMiaAX2Y0=', 'UWK/E5Jf/OLg+zFgICX3bwXc0iXfPEZ+PDDf0C+3Qvw=', 'BfppV7tESHi/QmrxuJG4WdXKYsO3lNTiXf0aBfasJ4E=', 'mHbEuCjA+RVWftr2AFuLieAJcyHYZnibd7waZPqvDNQ='] 29 | 30 | const { msg } = require('./nonPrefix.js') 31 | function sleep(ms) { 32 | return new Promise(resolve => setTimeout(resolve, ms)); 33 | } 34 | 35 | module.exports = msgHandler = async (client, message) => { 36 | try { 37 | const { type, id, from, t, sender, isGroupMsg, chat, chatId, caption, isMedia, mimetype, quotedMsg, mentionedJidList, author, quotedMsgObj } = message 38 | let { body } = message 39 | const { name } = chat 40 | let { pushname, verifiedName } = sender 41 | body = (type === 'chat' && body.startsWith(prefix)) ? body : ((type === 'image' && caption || type === 'video' && caption) && caption.startsWith(prefix)) ? caption : '' 42 | const command = body.slice(prefix.length).trim().split(/ +/).shift().toLowerCase() 43 | const args = body.slice(prefix.length).trim().split(/ +/).slice(1) 44 | const isCmd = body.startsWith(prefix) 45 | const isRule = ruleArr.includes(chat.id) 46 | const time = moment(t * 1000).format('DD/MM HH:mm:ss') 47 | 48 | const botNumber = await client.getHostNumber() 49 | const groupId = isGroupMsg ? chat.groupMetadata.id : '' 50 | const groupAdmins = isGroupMsg ? await client.getGroupAdmins(groupId) : '' 51 | const isGroupAdmins = isGroupMsg ? groupAdmins.includes(sender.id) : false 52 | const isBotGroupAdmins = isGroupMsg ? groupAdmins.includes(botNumber + '@c.us') : false 53 | if (isCmd && ban.includes(sender.id)) return client.reply(from, 'You\'re banned!', id) 54 | if ((message.type == 'sticker') && (stickerArr.includes(message.filehash))) return await sticker.stickerHandler(message, client, isGroupAdmins, isBotGroupAdmins, groupAdmins, color, time) 55 | if (isGroupMsg && isRule && (type === 'chat' && message.body.includes('chat.whatsapp.com') && isBotGroupAdmins) && !isGroupAdmins) return await client.removeParticipant(chat.id, author) 56 | if (isCmd && msgFilter.isFiltered(from) && !isGroupMsg) return console.log(color('[SPAM!]', 'red'), color(time, 'yellow'), color(`${command} [${args.length}]`), 'from', color(pushname)) 57 | if (isCmd && msgFilter.isFiltered(from) && isGroupMsg) return console.log(color('[SPAM!]', 'red'), color(time, 'yellow'), color(`${command} [${args.length}]`), 'from', color(pushname), 'in', color(name)) 58 | if (!isCmd && !isGroupMsg) return msg(message, color, true, time) 59 | if (!isCmd && isGroupMsg) return msg(message, color, false, time) 60 | if (isCmd && !isGroupMsg) console.log(color('[EXEC]'), color(time, 'yellow'), color(`${command} [${args.length}]`), 'from', color(pushname)) 61 | if (isCmd && isGroupMsg) console.log(color('[EXEC]'), color(time, 'yellow'), color(`${command} [${args.length}]`), 'from', color(pushname), 'in', color(name)) 62 | // eg [9190xxxxxxxx, 49xxxxxxxx] replace my number also 63 | const isowner = botadmins.includes(sender.id) 64 | 65 | msgFilter.addFilter(from) 66 | 67 | const uaOverride = 'WhatsApp/2.2029.4 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36' 68 | const isUrl = new RegExp(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&/=]*)/gi) 69 | switch (command) { 70 | case 'sticker': 71 | //console.log(type) 72 | if (isMedia && type == 'video') { 73 | return await sendSticker.sendAnimatedSticker(message) 74 | } else if (isMedia && type == 'image') { 75 | const mediaData = await decryptMedia(message) 76 | const imageBase64 = `data:${mimetype};base64,${mediaData.toString('base64')}` 77 | const baseImg = imageBase64.replace('video/mp4','image/gif') 78 | await client.sendImageAsSticker(from, baseImg) 79 | } else if (quotedMsg && quotedMsg.type == 'image') { 80 | const mediaData = await decryptMedia(quotedMsg) 81 | const imageBase64 = `data:${quotedMsg.mimetype};base64,${mediaData.toString('base64')}` 82 | await client.sendImageAsSticker(from, imageBase64) 83 | } else if (quotedMsg && quotedMsg.type == 'video') { 84 | if (quotedMsg.duration < 15) { 85 | sendSticker.sendAnimatedSticker(quotedMsgObj) 86 | } else { 87 | await client.reply(from, 'The given file is too large for converting', id) 88 | } 89 | } else { 90 | client.reply(from, 'You did not tag a picture or video, Baka', message.id) 91 | } 92 | break 93 | case 'toimg': 94 | if(!quotedMsg) return client.reply(from, '.', id) 95 | else if (quotedMsg && quotedMsg.type == 'video'){ 96 | return client.reply(from, 'that\'s not a sticker, Baka', id) 97 | } if(quotedMsg) { 98 | const mediaData = await decryptMedia(quotedMsg) 99 | const imageBase64 = `data:${quotedMsg.mimetype};base64,${mediaData.toString('base64')}` 100 | await client.sendFile(from, imageBase64, 'img.jpg') 101 | } 102 | break 103 | 104 | case 'tts': 105 | if (args.length === 1) return client.reply(from, ' *Usage #tts language text*') 106 | const dataBhs = body.slice(5, 7) 107 | const dataText = body.slice(8) 108 | 109 | if (dataText === '') return client.reply(from, '....', id) 110 | if (dataText.length > 500) return client.reply(from, 'Text?', id) 111 | 112 | try { 113 | const ttsget = require('node-gtts')(dataBhs.toLowerCase()) 114 | ttsget.save('./media/tts/restts.mp3', dataText, () => 115 | client.sendPtt(from, './media/tts/restts.mp3', id)) 116 | } catch (error) { 117 | return client.reply(from, 'Failed to get tts, is the given language code valid?', id) 118 | } 119 | 120 | break 121 | 122 | case 'quotemaker': 123 | arg = body.trim().split('|') 124 | if (arg.length >= 3) { 125 | client.reply(from, 'Processing...', message.id) 126 | const quotes = arg[1] 127 | const author = arg[2] 128 | const theme = arg[3] 129 | try { 130 | const resolt = await quotemaker(quotes, author, theme) 131 | client.sendFile(from, resolt, 'quotesmaker.jpg','neh...') 132 | } catch { 133 | client.reply(from, 'I\'m afraid to tell you that the image failed to process', message.id) 134 | } 135 | } else { 136 | client.reply(from, 'Usage: \n!quotemaker |text|watermark|theme\n\nEx :\n!quotemaker |...|...|random', message.id) 137 | } 138 | break 139 | 140 | case 'aiquote' : 141 | const aiquote = await axios.get("http://inspirobot.me/api?generate=true") 142 | await client.sendFileFromUrl(from, aiquote.data, 'quote.jpg', 'Powered By http://inspirobot.me/ With ❤️' , id ) 143 | break 144 | 145 | case 'groupinfo' : 146 | if (!isGroupMsg) return client.reply(from, '.', message.id) 147 | var totalMem = chat.groupMetadata.participants.length 148 | var desc = chat.groupMetadata.desc 149 | var groupname = name 150 | var welgrp = wel.includes(chat.id) 151 | var ngrp = nsfwgrp.includes(chat.id) 152 | var grouppic = await client.getProfilePicFromServer(chat.id) 153 | if (grouppic == undefined) { 154 | var pfp = errorurl 155 | } else { 156 | var pfp = grouppic 157 | } 158 | await client.sendFileFromUrl(from, pfp, 'group.png', `*${groupname}* 159 | 160 | 🌐️ *Members: ${totalMem}* 161 | 162 | 💌️ *Welcome: ${welgrp}* 163 | 164 | 🔮️ *Rule* : *${isRule}* 165 | 166 | ⚜️ *NSFW: ${ngrp}* 167 | 168 | 📃️ *Group Description* 169 | 170 | ${desc}`) 171 | break 172 | case 'bc': 173 | if(!isowner) return client.reply(from, 'Only Bot admins!', message.id) 174 | let msg = body.slice(4) 175 | const chatz = await client.getAllChatIds() 176 | for (let ids of chatz) { 177 | var cvk = await client.getChatById(ids) 178 | if (!cvk.isReadOnly) client.sendText(ids, `[ EWH BOT Broadcast ]\n\n${msg}`) 179 | } 180 | client.reply(from, 'Broadcast Success!', message.id) 181 | break 182 | case 'ban': 183 | if(!isowner) return client.reply(from, 'Only Bot admins can use this CMD!', message.id) 184 | for (let i = 0; i < mentionedJidList.length; i++) { 185 | ban.push(mentionedJidList[i]) 186 | fs.writeFileSync('./lib/banned.json', JSON.stringify(ban)) 187 | client.reply(from, 'Succes ban target!', message.id) 188 | } 189 | break 190 | case 'covid': 191 | arg = body.trim().split(' ') 192 | console.log(...arg[1]) 193 | var slicedArgs = Array.prototype.slice.call(arg, 1); 194 | console.log(slicedArgs) 195 | const country = await slicedArgs.join(' ') 196 | console.log(country) 197 | const response2 = await axios.get('https://coronavirus-19-api.herokuapp.com/countries/' + country + '/') 198 | const { cases, todayCases, deaths, todayDeaths, active } = response2.data 199 | await client.sendText(from, '🌎️Covid Info -' + country + ' 🌍️\n\n✨️Total Cases: ' + `${cases}` + '\n📆️Today\'s Cases: ' + `${todayCases}` + '\n☣️Total Deaths: ' + `${deaths}` + '\n☢️Today\'s Deaths: ' + `${todayDeaths}` + '\n⛩️Active Cases: ' + `${active}` + '.') 200 | break 201 | 202 | case 'ping': 203 | if (!isGroupMsg) return client.reply(from, 'Sorry, This command can only be used in groups', message.id) 204 | if (!isGroupAdmins) return client.reply(from, 'Well, only admins can use this command', message.id) 205 | const groupMem = await client.getGroupMembers(groupId) 206 | let hehe = `${body.slice(6)} - ${pushname} \n` 207 | for (let i = 0; i < groupMem.length; i++) { 208 | hehe += '✨️' 209 | hehe += ` @${groupMem[i].id.replace(/@c.us/g, '')}\n` 210 | } 211 | hehe += '----------------------' 212 | await client.sendTextWithMentions(from, hehe) 213 | break 214 | 215 | case 'kickall': 216 | const isGroupOwner = sender.id === chat.groupMetadata.owner 217 | if(!isGroupOwner) return client.reply(from, 'Sorry, Only group owner can use this CMD', message.id) 218 | if (!isGroupMsg) return client.reply(from, 'This command can only be used in groups', message.id) 219 | if(!isBotGroupAdmins) return client.reply(from, 'You need to give me the power to do this before executing', message.id) 220 | const allMem = await client.getGroupMembers(groupId) 221 | console.log(isGroupAdmins) 222 | for (let i = 0; i < allMem.length; i++) { 223 | if (groupAdmins.includes(allMem[i].id)) return 224 | await client.removeParticipant(groupId, allMem[i].id) 225 | } 226 | client.reply(from, 'Done!', message.id) 227 | break 228 | 229 | case 'clearall': 230 | if (!isowner) return client.reply(from, 'Owner only', message.id) 231 | const allChatz = await client.getAllChats() 232 | for (let dchat of allChatz) { 233 | await client.deleteChat(dchat.id) 234 | } 235 | client.reply(from, 'Done', message.id) 236 | break 237 | 238 | case 'act': 239 | arg = body.trim().split(' ') 240 | if (!isGroupAdmins) return client.reply(from, 'Only Admins can use this command, Baka >.<', id) 241 | if (arg[1].toLowerCase() == 'welcome') { 242 | if (wel.includes(chat.id)) { 243 | client.reply(from, `Welcome is already registered on *${name}*`, message.id) 244 | } else { 245 | wel.push(chat.id) 246 | fs.writeFileSync('./lib/welcome.json', JSON.stringify(wel)) 247 | client.reply(from, `Welcome is now registered on *${name}*`, message.id) 248 | } 249 | } else if (arg[1].toLowerCase() == 'nsfw') { 250 | if (nsfwgrp.includes(chat.id)) { 251 | client.reply(from, `NSFW is already registered on *${name}*`, message.id) 252 | } else { 253 | nsfwgrp.push(chat.id) 254 | fs.writeFileSync('./lib/nsfw.json', JSON.stringify(nsfwgrp)) 255 | client.reply(from, `NSFW is now registered on *${name}*`, message.id) 256 | } 257 | } else if (arg[1].toLowerCase() == 'rule') { 258 | if (!isBotGroupAdmins) return client.reply(from, 'You need to make me admin to use this CMD', message.id) 259 | if (ruleArr.includes(chat.id)) { 260 | client.reply(from, `Rule is already registered on *${name}*`, message.id) 261 | } else { 262 | ruleArr.push(chat.id) 263 | fs.writeFileSync('./lib/rule.json', JSON.stringify(ruleArr)) 264 | client.reply(from, `Rule is now registered on *${name}*`, message.id) 265 | } 266 | } 267 | break 268 | case 'deact': 269 | arg = body.trim().split(' ') 270 | if (!isGroupAdmins) return client.reply(from, 'Only Admins can use this command, Baka >.<', id) 271 | if (arg[1].toLowerCase() == 'welcome') { 272 | let inx = ban.indexOf(from) 273 | wel.splice(inx, 1) 274 | fs.writeFileSync('./lib/welcome.json', JSON.stringify(wel)) 275 | client.reply(from, `Welcome is now unregistered on *${name}*`, message.id) 276 | } else if (arg[1].toLowerCase() == 'nsfw') { 277 | let inx = ban.indexOf(from) 278 | nsfwgrp.splice(inx, 1) 279 | fs.writeFileSync('./lib/nsfw.json', JSON.stringify(nsfwgrp)) 280 | client.reply(from, `NSFW is now unregistered on *${name}*`, message.id) 281 | } else if (arg[1].toLowerCase() == 'pokegame') { 282 | let inx = pokarr.indexOf(from) 283 | pokarr.splice(inx, 1) 284 | fs.writeFileSync('./lib/poke.json', JSON.stringify(pokarr)) 285 | client.reply(from, `PokeGame is now unregistered on *${name}*`, message.id) 286 | } else if (arg[1].toLowerCase() == 'rule') { 287 | let inx = ruleArr.indexOf(from) 288 | ruleArr.splice(inx, 1) 289 | fs.writeFileSync('./lib/rule.json', JSON.stringify(ruleArr)) 290 | client.reply(from, `Rule is now unregistered on *${name}*`, message.id) 291 | } 292 | break 293 | 294 | case 'cgc': 295 | arg = body.trim().split(' ') 296 | const gcname = arg[1] 297 | client.createGroup(gcname, mentionedJidList) 298 | client.sendText(from, 'Group Created ✨️') 299 | break 300 | 301 | case 'sr': 302 | arg = body.trim().split(' ') 303 | const sr = arg[1] 304 | try { 305 | const response1 = await axios.get('https://meme-api.herokuapp.com/gimme/' + sr + '/'); 306 | const { 307 | postLink, 308 | title, 309 | subreddit, 310 | url, 311 | nsfw, 312 | spoiler 313 | } = response1.data 314 | 315 | const isnsfw = nsfwgrp.includes(from) 316 | if (nsfw == true) { 317 | if ((isGroupMsg) && (isnsfw)) { 318 | await client.sendFileFromUrl(from, `${url}`, 'Reddit.jpg', `${title}` + '\n\nPostlink:' + `${postLink}`) 319 | } else if ((isGroupMsg) && (!isnsfw)) { 320 | await client.reply(from, `NSFW is not registered on *${name}*`, id) 321 | } 322 | } else { 323 | await client.sendFileFromUrl(from, `${url}`, 'Reddit.jpg', `${title}` + '\n\nPostlink:' + `${postLink}`) 324 | } 325 | } catch(err) { 326 | console.log(err) 327 | await client.reply(from, 'There is no such subreddit, Baka!', id) 328 | } 329 | break 330 | case 'unban': 331 | if(!isowner) return client.reply(from, 'Only bot admins can use this CMD', message.id) 332 | let inx = ban.indexOf(mentionedJidList[0]) 333 | ban.splice(inx, 1) 334 | fs.writeFileSync('./lib/banned.json', JSON.stringify(ban)) 335 | client.reply(from, 'Unbanned User!', message.id) 336 | break 337 | case 'kick': 338 | if(!isGroupMsg) return client.reply(from, '...', message.id) 339 | if(!isGroupAdmins) return client.reply(from, 'You are not an admin, Sorry', message.id) 340 | if(!isBotGroupAdmins) return client.reply(from, 'You need to make me admin to use this CMD', message.id) 341 | if(mentionedJidList.length === 0) return client.reply(from, 'Wrong format', message.id) 342 | await client.sendText(from, `Request Accepted! issued:\n${mentionedJidList.join('\n')}`) 343 | for (let i = 0; i < mentionedJidList.length; i++) { 344 | if (groupAdmins.includes(mentionedJidList[i])) return await client.reply(from, '....', message.id) 345 | await client.removeParticipant(groupId, mentionedJidList[i]) 346 | } 347 | break 348 | case 'delete': 349 | if (!isGroupAdmins) return client.reply(from, 'Only admins can use this command', id) 350 | if (!quotedMsg) return client.reply(from, 'Wrong Format!', id) 351 | if (!quotedMsgObj.fromMe) return client.reply(from, 'Wrong Format!', id) 352 | client.deleteMessage(quotedMsgObj.chatId, quotedMsgObj.id, false) 353 | break 354 | case 'leave': 355 | if(!isGroupMsg) return client.reply(from, '...', message.id) 356 | if(!isGroupAdmins) return client.reply(from, 'You are not an admin', message.id) 357 | await client.sendText(from,'Sayonara').then(() => client.leaveGroup(groupId)) 358 | break 359 | case 'promote': 360 | if(!isGroupMsg) return client.reply(from, '.', message.id) 361 | if(!isGroupAdmins) return client.reply(from, 'You are not an admin', message.id) 362 | if(!isBotGroupAdmins) return client.reply(from, 'You need to make me admin to use this CMD', message.id) 363 | if (mentionedJidList.length === 0) return await client.reply(from, 'Wrong format!', message.id) 364 | if (mentionedJidList.length >= 2) return await client.reply(from, 'One user at a time', message.id) 365 | if (groupAdmins.includes(mentionedJidList[0])) return await client.reply(from, 'This user is already admin', message.id) 366 | await client.promoteParticipant(groupId, mentionedJidList[0]) 367 | await client.sendTextWithMentions(from, `@${mentionedJidList[0].replace('@c.us', '')} is now an admin`) 368 | break 369 | case 'demote': 370 | if(!isGroupAdmins) return client.reply(from, 'You are not an admin', message.id) 371 | if(!isBotGroupAdmins) return client.reply(from, 'You need to make me admin to use this CMD', message.id) 372 | if (mentionedJidList.length === 0) return client.reply(from, 'Wrong Format', message.id) 373 | if (mentionedJidList.length >= 2) return await client.reply(from, 'One user at a time', message.id) 374 | if (!groupAdmins.includes(mentionedJidList[0])) return await client.reply(from, 'The user isn\'t an admin', message.id) 375 | await client.demoteParticipant(groupId, mentionedJidList[0]) 376 | await client.sendTextWithMentions(from, `Demoted @${mentionedJidList[0].replace('@c.us', '')}.`) 377 | break 378 | case 'join': 379 | if (args.length == 0) return client.reply(from, 'Wrong Format', message.id) 380 | const link = body.slice(6) 381 | const minMem = 30 382 | const isLink = link.match(/(https:\/\/chat.whatsapp.com)/gi) 383 | const check = await client.inviteInfo(link) 384 | if (!isLink) return client.reply(from, 'Where\'s the link?', message.id) 385 | if (check.size < minMem) return client.reply(from, 'The group does not have 30+ members', message.id) 386 | await client.joinGroupViaLink(link).then( async () => { 387 | await client.reply(from, '*Joined* ✨️', message.id) 388 | }).catch(error => { 389 | client.reply(from, 'An error occured 💔️', message.id) 390 | }) 391 | break 392 | case 'sauce': 393 | if (isMedia) { 394 | if (type == 'image') { 395 | const buffer = await decryptMedia(message, uaOverride) 396 | const filename = `./media/images/sauce.${mime.extension(message.mimetype)}` 397 | await fs.writeFile(filename, buffer) 398 | await source.sauce(filename, message) 399 | } else { 400 | client.reply(from, 'Only Images are supported', id) 401 | } 402 | } else if (quotedMsg && quotedMsg.type == 'image') { 403 | const buffer = await decryptMedia(quotedMsg, uaOverride) 404 | const filename = `./media/images/sauce.${mime.extension(quotedMsg.mimetype)}` 405 | await fs.writeFile(filename, buffer) 406 | await source.sauce(filename, quotedMsgObj) 407 | } else { 408 | client.reply(from, 'Only Images are supported', id) 409 | } 410 | break 411 | 412 | case 'lyrics': 413 | if (args.length == 0) return client.reply(from, 'Wrong Format', message.id) 414 | const lagu = body.slice(7) 415 | console.log(lagu) 416 | const lirik = await liriklagu(lagu) 417 | client.sendText(from, lirik) 418 | break 419 | case 'anime': 420 | const keyword = message.body.replace('#anime', '') 421 | try { 422 | const data = await fetch( 423 | `https://api.jikan.moe/v3/search/anime?q=${keyword}` 424 | ) 425 | const parsed = await data.json() 426 | if (!parsed) { 427 | await client.sendFileFromUrl(from, errorurl2, 'error.png', '💔️ Sorry, Couldn\'t find the requested anime', id) 428 | console.log("Sent!") 429 | return null 430 | } 431 | const { title, synopsis, episodes, url, rated, score, image_url } = parsed.results[0] 432 | const content = `*Anime Found!* 433 | ✨️ *Title:* ${title} 434 | 435 | 🎆️ *Episodes:* ${episodes} 436 | 437 | 💌️ *Rating:* ${rated} 438 | 439 | ❤️ *Score:* ${score} 440 | 441 | 💚️ *Synopsis:* ${synopsis} 442 | 443 | 🌐️ *URL*: ${url}` 444 | 445 | const image = await bent("buffer")(image_url) 446 | const base64 = `data:image/jpg;base64,${image.toString("base64")}` 447 | client.sendImage(from, base64, title, content) 448 | } catch (err) { 449 | console.error(err.message) 450 | await client.sendFileFromUrl(from, errorurl2, 'error.png', '💔️ Sorry, Couldn\'t find the requested anime') 451 | } 452 | break 453 | case 'manga': 454 | const keywrd = (args) 455 | try { 456 | const data = await fetch( 457 | `https://api.jikan.moe/v3/search/manga?q=${keywrd}` 458 | ) 459 | const parsed = await data.json() 460 | if (!parsed) { 461 | await client.sendFileFromUrl(from, errorurl2, 'error.png', 'Sorry, Couldn\'t find the requested manga', id) 462 | console.log("Sent!") 463 | return null 464 | } 465 | const { title, synopsis, chapters, url, volumes, score, image_url } = parsed.results[0] 466 | const content = `*Manga found* 467 | 468 | *Title:* ${title} 469 | 470 | *Chapters:* ${chapters} 471 | 472 | *Volumes:* ${volumes} 473 | 474 | *Score:* ${score} 475 | 476 | *Synopsis:* ${synopsis} 477 | 478 | *Link*: ${url}` 479 | 480 | const image = await bent("buffer")(image_url) 481 | const base64 = `data:image/jpg;base64,${image.toString("base64")}` 482 | client.sendImage(from, base64, title, content) 483 | } catch (err) { 484 | console.error(err.message) 485 | await client.sendFileFromUrl(from, errorurl2, 'error.png', 'Sorry, Couldn\'t find the requested manga') 486 | } 487 | break 488 | 489 | case 'chara': 490 | const keywr = (args) 491 | try { 492 | const data = await fetch( 493 | `https://api.jikan.moe/v3/search/character?q=${keywr}` 494 | ) 495 | const parsed = await data.json() 496 | if (!parsed) { 497 | await client.sendFileFromUrl(from, errorurl2, 'error.png', 'Sorry, Couldn\'t find the requested character', id) 498 | console.log("Sent!") 499 | return null 500 | } 501 | const { name, alternative_names, url, image_url } = parsed.results[0] 502 | const content = `*Character found!* 503 | 504 | *Name:* ${name} 505 | 506 | *Nickname:* ${alternative_names} 507 | 508 | *Link*: ${url}` 509 | 510 | const image = await bent("buffer")(image_url) 511 | const base64 = `data:image/jpg;base64,${image.toString("base64")}` 512 | client.sendImage(from, base64, name, content) 513 | } catch (err) { 514 | console.error(err.message) 515 | await client.sendFileFromUrl(from, errorurl2, 'error.png', 'Sorry, Couldn\'t find the requested character') 516 | } 517 | break 518 | case 'wallpaper': 519 | if (args.length == 0) return client.reply(from, 'Wrong Format!', id) 520 | const query = body.slice(6) 521 | const walls = await wall(query) 522 | await client.sendFileFromUrl(from, walls, 'walls.jpg', '', id) 523 | break 524 | case 'haigusha': 525 | const waifu = await waifuclient.getRandom() 526 | await sclient.sendFileFromUrl(message.from, waifu.data.display_picture, 'haugusha.jpg', `❤️ *Name : ${waifu.data.name}*\n\n💎️ Description : ${waifu.data.description}\n\n💚️ Source : ${waifu.data.series.name}\n\n✨️ URL: ${waifu.data.url}`, message.id) 527 | break 528 | case 'animeneko': 529 | client.sendFileFromUrl(from, akaneko.neko(), 'neko.jpg', 'Neko *Nyaa*~') 530 | break 531 | case 'doggo': 532 | const list = ["https://cdn.shibe.online/shibes/247d0ac978c9de9d9b66d72dbdc65f2dac64781d.jpg","https://cdn.shibe.online/shibes/1cf322acb7d74308995b04ea5eae7b520e0eae76.jpg","https://cdn.shibe.online/shibes/1ce955c3e49ae437dab68c09cf45297d68773adf.jpg","https://cdn.shibe.online/shibes/ec02bee661a797518d37098ab9ad0c02da0b05c3.jpg","https://cdn.shibe.online/shibes/1e6102253b51fbc116b887e3d3cde7b5c5083542.jpg","https://cdn.shibe.online/shibes/f0c07a7205d95577861eee382b4c8899ac620351.jpg","https://cdn.shibe.online/shibes/3eaf3b7427e2d375f09fc883f94fa8a6d4178a0a.jpg","https://cdn.shibe.online/shibes/c8b9fcfde23aee8d179c4c6f34d34fa41dfaffbf.jpg","https://cdn.shibe.online/shibes/55f298bc16017ed0aeae952031f0972b31c959cb.jpg","https://cdn.shibe.online/shibes/2d5dfe2b0170d5de6c8bc8a24b8ad72449fbf6f6.jpg","https://cdn.shibe.online/shibes/e9437de45e7cddd7d6c13299255e06f0f1d40918.jpg","https://cdn.shibe.online/shibes/6c32141a0d5d089971d99e51fd74207ff10751e7.jpg","https://cdn.shibe.online/shibes/028056c9f23ff40bc749a95cc7da7a4bb734e908.jpg","https://cdn.shibe.online/shibes/4fb0c8b74dbc7653e75ec1da597f0e7ac95fe788.jpg","https://cdn.shibe.online/shibes/125563d2ab4e520aaf27214483e765db9147dcb3.jpg","https://cdn.shibe.online/shibes/ea5258fad62cebe1fedcd8ec95776d6a9447698c.jpg","https://cdn.shibe.online/shibes/5ef2c83c2917e2f944910cb4a9a9b441d135f875.jpg","https://cdn.shibe.online/shibes/6d124364f02944300ae4f927b181733390edf64e.jpg","https://cdn.shibe.online/shibes/92213f0c406787acd4be252edb5e27c7e4f7a430.jpg","https://cdn.shibe.online/shibes/40fda0fd3d329be0d92dd7e436faa80db13c5017.jpg","https://cdn.shibe.online/shibes/e5c085fc427528fee7d4c3935ff4cd79af834a82.jpg","https://cdn.shibe.online/shibes/f83fa32c0da893163321b5cccab024172ddbade1.jpg","https://cdn.shibe.online/shibes/4aa2459b7f411919bf8df1991fa114e47b802957.jpg","https://cdn.shibe.online/shibes/2ef54e174f13e6aa21bb8be3c7aec2fdac6a442f.jpg","https://cdn.shibe.online/shibes/fa97547e670f23440608f333f8ec382a75ba5d94.jpg","https://cdn.shibe.online/shibes/fb1b7150ed8eb4ffa3b0e61ba47546dd6ee7d0dc.jpg","https://cdn.shibe.online/shibes/abf9fb41d914140a75d8bf8e05e4049e0a966c68.jpg","https://cdn.shibe.online/shibes/f63e3abe54c71cc0d0c567ebe8bce198589ae145.jpg","https://cdn.shibe.online/shibes/4c27b7b2395a5d051b00691cc4195ef286abf9e1.jpg","https://cdn.shibe.online/shibes/00df02e302eac0676bb03f41f4adf2b32418bac8.jpg","https://cdn.shibe.online/shibes/4deaac9baec39e8a93889a84257338ebb89eca50.jpg","https://cdn.shibe.online/shibes/199f8513d34901b0b20a33758e6ee2d768634ebb.jpg","https://cdn.shibe.online/shibes/f3efbf7a77e5797a72997869e8e2eaa9efcdceb5.jpg","https://cdn.shibe.online/shibes/39a20ccc9cdc17ea27f08643b019734453016e68.jpg","https://cdn.shibe.online/shibes/e67dea458b62cf3daa4b1e2b53a25405760af478.jpg","https://cdn.shibe.online/shibes/0a892f6554c18c8bcdab4ef7adec1387c76c6812.jpg","https://cdn.shibe.online/shibes/1b479987674c9b503f32e96e3a6aeca350a07ade.jpg","https://cdn.shibe.online/shibes/0c80fc00d82e09d593669d7cce9e273024ba7db9.jpg","https://cdn.shibe.online/shibes/bbc066183e87457b3143f71121fc9eebc40bf054.jpg","https://cdn.shibe.online/shibes/0932bf77f115057c7308ef70c3de1de7f8e7c646.jpg","https://cdn.shibe.online/shibes/9c87e6bb0f3dc938ce4c453eee176f24636440e0.jpg","https://cdn.shibe.online/shibes/0af1bcb0b13edf5e9b773e34e54dfceec8fa5849.jpg","https://cdn.shibe.online/shibes/32cf3f6eac4673d2e00f7360753c3f48ed53c650.jpg","https://cdn.shibe.online/shibes/af94d8eeb0f06a0fa06f090f404e3bbe86967949.jpg","https://cdn.shibe.online/shibes/4b55e826553b173c04c6f17aca8b0d2042d309fb.jpg","https://cdn.shibe.online/shibes/a0e53593393b6c724956f9abe0abb112f7506b7b.jpg","https://cdn.shibe.online/shibes/7eba25846f69b01ec04de1cae9fed4b45c203e87.jpg","https://cdn.shibe.online/shibes/fec6620d74bcb17b210e2cedca72547a332030d0.jpg","https://cdn.shibe.online/shibes/26cf6be03456a2609963d8fcf52cc3746fcb222c.jpg","https://cdn.shibe.online/shibes/c41b5da03ad74b08b7919afc6caf2dd345b3e591.jpg","https://cdn.shibe.online/shibes/7a9997f817ccdabac11d1f51fac563242658d654.jpg","https://cdn.shibe.online/shibes/7221241bad7da783c3c4d84cfedbeb21b9e4deea.jpg","https://cdn.shibe.online/shibes/283829584e6425421059c57d001c91b9dc86f33b.jpg","https://cdn.shibe.online/shibes/5145c9d3c3603c9e626585cce8cffdfcac081b31.jpg","https://cdn.shibe.online/shibes/b359c891e39994af83cf45738b28e499cb8ffe74.jpg","https://cdn.shibe.online/shibes/0b77f74a5d9afaa4b5094b28a6f3ee60efcb3874.jpg","https://cdn.shibe.online/shibes/adccfdf7d4d3332186c62ed8eb254a49b889c6f9.jpg","https://cdn.shibe.online/shibes/3aac69180f777512d5dabd33b09f531b7a845331.jpg","https://cdn.shibe.online/shibes/1d25e4f592db83039585fa480676687861498db8.jpg","https://cdn.shibe.online/shibes/d8349a2436420cf5a89a0010e91bf8dfbdd9d1cc.jpg","https://cdn.shibe.online/shibes/eb465ef1906dccd215e7a243b146c19e1af66c67.jpg","https://cdn.shibe.online/shibes/3d14e3c32863195869e7a8ba22229f457780008b.jpg","https://cdn.shibe.online/shibes/79cedc1a08302056f9819f39dcdf8eb4209551a3.jpg","https://cdn.shibe.online/shibes/4440aa827f88c04baa9c946f72fc688a34173581.jpg","https://cdn.shibe.online/shibes/94ea4a2d4b9cb852e9c1ff599f6a4acfa41a0c55.jpg","https://cdn.shibe.online/shibes/f4478196e441aef0ada61bbebe96ac9a573b2e5d.jpg","https://cdn.shibe.online/shibes/96d4db7c073526a35c626fc7518800586fd4ce67.jpg","https://cdn.shibe.online/shibes/196f3ed10ee98557328c7b5db98ac4a539224927.jpg","https://cdn.shibe.online/shibes/d12b07349029ca015d555849bcbd564d8b69fdbf.jpg","https://cdn.shibe.online/shibes/80fba84353000476400a9849da045611a590c79f.jpg","https://cdn.shibe.online/shibes/94cb90933e179375608c5c58b3d8658ef136ad3c.jpg","https://cdn.shibe.online/shibes/8447e67b5d622ef0593485316b0c87940a0ef435.jpg","https://cdn.shibe.online/shibes/c39a1d83ad44d2427fc8090298c1062d1d849f7e.jpg","https://cdn.shibe.online/shibes/6f38b9b5b8dbf187f6e3313d6e7583ec3b942472.jpg","https://cdn.shibe.online/shibes/81a2cbb9a91c6b1d55dcc702cd3f9cfd9a111cae.jpg","https://cdn.shibe.online/shibes/f1f6ed56c814bd939645138b8e195ff392dfd799.jpg","https://cdn.shibe.online/shibes/204a4c43cfad1cdc1b76cccb4b9a6dcb4a5246d8.jpg","https://cdn.shibe.online/shibes/9f34919b6154a88afc7d001c9d5f79b2e465806f.jpg","https://cdn.shibe.online/shibes/6f556a64a4885186331747c432c4ef4820620d14.jpg","https://cdn.shibe.online/shibes/bbd18ae7aaf976f745bc3dff46b49641313c26a9.jpg","https://cdn.shibe.online/shibes/6a2b286a28183267fca2200d7c677eba73b1217d.jpg","https://cdn.shibe.online/shibes/06767701966ed64fa7eff2d8d9e018e9f10487ee.jpg","https://cdn.shibe.online/shibes/7aafa4880b15b8f75d916b31485458b4a8d96815.jpg","https://cdn.shibe.online/shibes/b501169755bcf5c1eca874ab116a2802b6e51a2e.jpg","https://cdn.shibe.online/shibes/a8989bad101f35cf94213f17968c33c3031c16fc.jpg","https://cdn.shibe.online/shibes/f5d78feb3baa0835056f15ff9ced8e3c32bb07e8.jpg","https://cdn.shibe.online/shibes/75db0c76e86fbcf81d3946104c619a7950e62783.jpg","https://cdn.shibe.online/shibes/8ac387d1b252595bbd0723a1995f17405386b794.jpg","https://cdn.shibe.online/shibes/4379491ef4662faa178f791cc592b52653fb24b3.jpg","https://cdn.shibe.online/shibes/4caeee5f80add8c3db9990663a356e4eec12fc0a.jpg","https://cdn.shibe.online/shibes/99ef30ea8bb6064129da36e5673649e957cc76c0.jpg","https://cdn.shibe.online/shibes/aeac6a5b0a07a00fba0ba953af27734d2361fc10.jpg","https://cdn.shibe.online/shibes/9a217cfa377cc50dd8465d251731be05559b2142.jpg","https://cdn.shibe.online/shibes/65f6047d8e1d247af353532db018b08a928fd62a.jpg","https://cdn.shibe.online/shibes/fcead395cbf330b02978f9463ac125074ac87ab4.jpg","https://cdn.shibe.online/shibes/79451dc808a3a73f99c339f485c2bde833380af0.jpg","https://cdn.shibe.online/shibes/bedf90869797983017f764165a5d97a630b7054b.jpg","https://cdn.shibe.online/shibes/dd20e5801badd797513729a3645c502ae4629247.jpg","https://cdn.shibe.online/shibes/88361ee50b544cb1623cb259bcf07b9850183e65.jpg","https://cdn.shibe.online/shibes/0ebcfd98e8aa61c048968cb37f66a2b5d9d54d4b.jpg"] 533 | let kya = list[Math.floor(Math.random() * list.length)] 534 | client.sendFileFromUrl(from, kya, 'Dog.jpeg', 'Doggo ✨️', id) 535 | break 536 | case 'neko': 537 | q2 = Math.floor(Math.random() * 900) + 300; 538 | q3 = Math.floor(Math.random() * 900) + 300; 539 | client.sendFileFromUrl(from, 'http://placekitten.com/'+q3+'/'+q2, 'neko.png','Neko 🌠️', id) 540 | break 541 | case 'roll': 542 | const dice = Math.floor(Math.random() * 6) + 1 543 | await client.sendStickerfromUrl(from, 'https://www.random.org/dice/dice' + dice + '.png') 544 | break 545 | case 'flip': 546 | const side = Math.floor(Math.random() * 2) + 1 547 | if (side == 1) { 548 | client.sendStickerfromUrl(from, 'https://i.ibb.co/LJjkVK5/heads.png') 549 | } else { 550 | client.sendStickerfromUrl(from, 'https://i.ibb.co/wNnZ4QD/tails.png') 551 | } 552 | break 553 | case 'slap': 554 | arg = body.trim().split(' ') 555 | const person = author.replace('@c.us', '') 556 | await client.sendGiphyAsSticker(from, 'https://media.giphy.com/media/S8507sBJm1598XnsgD/source.gif') 557 | client.sendTextWithMentions(from, '@' + person + ' *slapped* ' + arg[1]) 558 | break 559 | case 'pokemon': 560 | arg = body.trim().split(' ') 561 | if (arg.length < 2) { 562 | client.reply(from, 'Give me a pokemon name, Baka!', id) 563 | } else { 564 | if (pkarrs.includes(body.slice(9).toLowerCase())) { 565 | const pokedta = await pokefunc.pkmzdata(body.slice(9).toLowerCase()) 566 | await client.sendFileFromUrl(from, pokedta.url, 'pkmn.png',pokedta.data, id) 567 | } else { 568 | client.reply(from, `No such pokemon (${body.slice(9).toLowerCase()})`, id) 569 | } 570 | } 571 | break 572 | case 'rpaper' : 573 | const walnime = ['https://cdn.nekos.life/wallpaper/QwGLg4oFkfY.png','https://cdn.nekos.life/wallpaper/bUzSjcYxZxQ.jpg','https://cdn.nekos.life/wallpaper/j49zxzaUcjQ.jpg','https://cdn.nekos.life/wallpaper/YLTH5KuvGX8.png','https://cdn.nekos.life/wallpaper/Xi6Edg133m8.jpg','https://cdn.nekos.life/wallpaper/qvahUaFIgUY.png','https://cdn.nekos.life/wallpaper/leC8q3u8BSk.jpg','https://cdn.nekos.life/wallpaper/tSUw8s04Zy0.jpg','https://cdn.nekos.life/wallpaper/sqsj3sS6EJE.png','https://cdn.nekos.life/wallpaper/HmjdX_s4PU4.png','https://cdn.nekos.life/wallpaper/Oe2lKgLqEXY.jpg','https://cdn.nekos.life/wallpaper/GTwbUYI-xTc.jpg','https://cdn.nekos.life/wallpaper/nn_nA8wTeP0.png','https://cdn.nekos.life/wallpaper/Q63o6v-UUa8.png','https://cdn.nekos.life/wallpaper/ZXLFm05K16Q.jpg','https://cdn.nekos.life/wallpaper/cwl_1tuUPuQ.png','https://cdn.nekos.life/wallpaper/wWhtfdbfAgM.jpg','https://cdn.nekos.life/wallpaper/3pj0Xy84cPg.jpg','https://cdn.nekos.life/wallpaper/sBoo8_j3fkI.jpg','https://cdn.nekos.life/wallpaper/gCUl_TVizsY.png','https://cdn.nekos.life/wallpaper/LmTi1k9REW8.jpg','https://cdn.nekos.life/wallpaper/sbq_4WW2PUM.jpg','https://cdn.nekos.life/wallpaper/QOSUXEbzDQA.png','https://cdn.nekos.life/wallpaper/khaqGIHsiqk.jpg','https://cdn.nekos.life/wallpaper/iFtEXugqQgA.png','https://cdn.nekos.life/wallpaper/deFKIDdRe1I.jpg','https://cdn.nekos.life/wallpaper/OHZVtvDm0gk.jpg','https://cdn.nekos.life/wallpaper/YZYa00Hp2mk.jpg','https://cdn.nekos.life/wallpaper/R8nPIKQKo9g.png','https://cdn.nekos.life/wallpaper/_brn3qpRBEE.jpg','https://cdn.nekos.life/wallpaper/ADTEQdaHhFI.png','https://cdn.nekos.life/wallpaper/MGvWl6om-Fw.jpg','https://cdn.nekos.life/wallpaper/YGmpjZW3AoQ.jpg','https://cdn.nekos.life/wallpaper/hNCgoY-mQPI.jpg','https://cdn.nekos.life/wallpaper/3db40hylKs8.png','https://cdn.nekos.life/wallpaper/iQ2FSo5nCF8.jpg','https://cdn.nekos.life/wallpaper/meaSEfeq9QM.png','https://cdn.nekos.life/wallpaper/CmEmn79xnZU.jpg','https://cdn.nekos.life/wallpaper/MAL18nB-yBI.jpg','https://cdn.nekos.life/wallpaper/FUuBi2xODuI.jpg','https://cdn.nekos.life/wallpaper/ez-vNNuk6Ck.jpg','https://cdn.nekos.life/wallpaper/K4-z0Bc0Vpc.jpg','https://cdn.nekos.life/wallpaper/Y4JMbswrNg8.jpg','https://cdn.nekos.life/wallpaper/ffbPXIxt4-0.png','https://cdn.nekos.life/wallpaper/x63h_W8KFL8.jpg','https://cdn.nekos.life/wallpaper/lktzjDRhWyg.jpg','https://cdn.nekos.life/wallpaper/j7oQtvRZBOI.jpg','https://cdn.nekos.life/wallpaper/MQQEAD7TUpQ.png','https://cdn.nekos.life/wallpaper/lEG1-Eeva6Y.png','https://cdn.nekos.life/wallpaper/Loh5wf0O5Aw.png','https://cdn.nekos.life/wallpaper/yO6ioREenLA.png','https://cdn.nekos.life/wallpaper/4vKWTVgMNDc.jpg','https://cdn.nekos.life/wallpaper/Yk22OErU8eg.png','https://cdn.nekos.life/wallpaper/Y5uf1hsnufE.png','https://cdn.nekos.life/wallpaper/xAmBpMUd2Zw.jpg','https://cdn.nekos.life/wallpaper/f_RWFoWciRE.jpg','https://cdn.nekos.life/wallpaper/Y9qjP2Y__PA.jpg','https://cdn.nekos.life/wallpaper/eqEzgohpPwc.jpg','https://cdn.nekos.life/wallpaper/s1MBos_ZGWo.jpg','https://cdn.nekos.life/wallpaper/PtW0or_Pa9c.png','https://cdn.nekos.life/wallpaper/32EAswpy3M8.png','https://cdn.nekos.life/wallpaper/Z6eJZf5xhcE.png','https://cdn.nekos.life/wallpaper/xdiSF731IFY.jpg','https://cdn.nekos.life/wallpaper/Y9r9trNYadY.png','https://cdn.nekos.life/wallpaper/8bH8CXn-sOg.jpg','https://cdn.nekos.life/wallpaper/a02DmIFzRBE.png','https://cdn.nekos.life/wallpaper/MnrbXcPa7Oo.png','https://cdn.nekos.life/wallpaper/s1Tc9xnugDk.jpg','https://cdn.nekos.life/wallpaper/zRqEx2gnfmg.jpg','https://cdn.nekos.life/wallpaper/PtW0or_Pa9c.png','https://cdn.nekos.life/wallpaper/0ECCRW9soHM.jpg','https://cdn.nekos.life/wallpaper/kAw8QHl_wbM.jpg','https://cdn.nekos.life/wallpaper/ZXcaFmpOlLk.jpg','https://cdn.nekos.life/wallpaper/WVEdi9Ng8UE.png','https://cdn.nekos.life/wallpaper/IRu29rNgcYU.png','https://cdn.nekos.life/wallpaper/LgIJ_1AL3rM.jpg','https://cdn.nekos.life/wallpaper/DVD5_fLJEZA.jpg','https://cdn.nekos.life/wallpaper/siqOQ7k8qqk.jpg','https://cdn.nekos.life/wallpaper/CXNX_15eGEQ.png','https://cdn.nekos.life/wallpaper/s62tGjOTHnk.jpg','https://cdn.nekos.life/wallpaper/tmQ5ce6EfJE.png','https://cdn.nekos.life/wallpaper/Zju7qlBMcQ4.jpg','https://cdn.nekos.life/wallpaper/CPOc_bMAh2Q.png','https://cdn.nekos.life/wallpaper/Ew57S1KtqsY.jpg','https://cdn.nekos.life/wallpaper/hVpFbYJmZZc.jpg','https://cdn.nekos.life/wallpaper/sb9_J28pftY.jpg','https://cdn.nekos.life/wallpaper/JDoIi_IOB04.jpg','https://cdn.nekos.life/wallpaper/rG76AaUZXzk.jpg','https://cdn.nekos.life/wallpaper/9ru2luBo360.png','https://cdn.nekos.life/wallpaper/ghCgiWFxGwY.png','https://cdn.nekos.life/wallpaper/OSR-i-Rh7ZY.png','https://cdn.nekos.life/wallpaper/65VgtPyweCc.jpg','https://cdn.nekos.life/wallpaper/3vn-0FkNSbM.jpg','https://cdn.nekos.life/wallpaper/u02Y0-AJPL0.jpg','https://cdn.nekos.life/wallpaper/_-Z-0fGflRc.jpg','https://cdn.nekos.life/wallpaper/3VjNKqEPp58.jpg','https://cdn.nekos.life/wallpaper/NoG4lKnk6Sc.jpg','https://cdn.nekos.life/wallpaper/xiTxgRMA_IA.jpg','https://cdn.nekos.life/wallpaper/yq1ZswdOGpg.png','https://cdn.nekos.life/wallpaper/4SUxw4M3UMA.png','https://cdn.nekos.life/wallpaper/cUPnQOHNLg0.jpg','https://cdn.nekos.life/wallpaper/zczjuLWRisA.jpg','https://cdn.nekos.life/wallpaper/TcxvU_diaC0.png','https://cdn.nekos.life/wallpaper/7qqWhEF_uoY.jpg','https://cdn.nekos.life/wallpaper/J4t_7DvoUZw.jpg','https://cdn.nekos.life/wallpaper/xQ1Pg5D6J4U.jpg','https://cdn.nekos.life/wallpaper/aIMK5Ir4xho.jpg','https://cdn.nekos.life/wallpaper/6gneEXrNAWU.jpg','https://cdn.nekos.life/wallpaper/PSvNdoISWF8.jpg','https://cdn.nekos.life/wallpaper/SjgF2-iOmV8.jpg','https://cdn.nekos.life/wallpaper/vU54ikOVY98.jpg','https://cdn.nekos.life/wallpaper/QjnfRwkRU-Q.jpg','https://cdn.nekos.life/wallpaper/uSKqzz6ZdXc.png','https://cdn.nekos.life/wallpaper/AMrcxZOnVBE.jpg','https://cdn.nekos.life/wallpaper/N1l8SCMxamE.jpg','https://cdn.nekos.life/wallpaper/n2cBaTo-J50.png','https://cdn.nekos.life/wallpaper/ZXcaFmpOlLk.jpg','https://cdn.nekos.life/wallpaper/7bwxy3elI7o.png','https://cdn.nekos.life/wallpaper/7VW4HwF6LcM.jpg','https://cdn.nekos.life/wallpaper/YtrPAWul1Ug.png','https://cdn.nekos.life/wallpaper/1p4_Mmq95Ro.jpg','https://cdn.nekos.life/wallpaper/EY5qz5iebJw.png','https://cdn.nekos.life/wallpaper/aVDS6iEAIfw.jpg','https://cdn.nekos.life/wallpaper/veg_xpHQfjE.jpg','https://cdn.nekos.life/wallpaper/meaSEfeq9QM.png','https://cdn.nekos.life/wallpaper/Xa_GtsKsy-s.png','https://cdn.nekos.life/wallpaper/6Bx8R6D75eM.png','https://cdn.nekos.life/wallpaper/zXOGXH_b8VY.png','https://cdn.nekos.life/wallpaper/VQcviMxoQ00.png','https://cdn.nekos.life/wallpaper/CJnRl-PKWe8.png','https://cdn.nekos.life/wallpaper/zEWYfFL_Ero.png','https://cdn.nekos.life/wallpaper/_C9Uc5MPaz4.png','https://cdn.nekos.life/wallpaper/zskxNqNXyG0.jpg','https://cdn.nekos.life/wallpaper/g7w14PjzzcQ.jpg','https://cdn.nekos.life/wallpaper/KavYXR_GRB4.jpg','https://cdn.nekos.life/wallpaper/Z_r9WItzJBc.jpg','https://cdn.nekos.life/wallpaper/Qps-0JD6834.jpg','https://cdn.nekos.life/wallpaper/Ri3CiJIJ6M8.png','https://cdn.nekos.life/wallpaper/ArGYIpJwehY.jpg','https://cdn.nekos.life/wallpaper/uqYKeYM5h8w.jpg','https://cdn.nekos.life/wallpaper/h9cahfuKsRg.jpg','https://cdn.nekos.life/wallpaper/iNPWKO8d2a4.jpg','https://cdn.nekos.life/wallpaper/j2KoFVhsNig.jpg','https://cdn.nekos.life/wallpaper/z5Nc-aS6QJ4.jpg','https://cdn.nekos.life/wallpaper/VUFoK8l1qs0.png','https://cdn.nekos.life/wallpaper/rQ8eYh5mXN8.png','https://cdn.nekos.life/wallpaper/D3NxNISDavQ.png','https://cdn.nekos.life/wallpaper/Z_CiozIenrU.jpg','https://cdn.nekos.life/wallpaper/np8rpfZflWE.jpg','https://cdn.nekos.life/wallpaper/ED-fgS09gik.jpg','https://cdn.nekos.life/wallpaper/AB0Cwfs1X2w.jpg','https://cdn.nekos.life/wallpaper/DZBcYfHouiI.jpg','https://cdn.nekos.life/wallpaper/lC7pB-GRAcQ.png','https://cdn.nekos.life/wallpaper/zrI-sBSt2zE.png','https://cdn.nekos.life/wallpaper/_RJhylwaCLk.jpg','https://cdn.nekos.life/wallpaper/6km5m_GGIuw.png','https://cdn.nekos.life/wallpaper/3db40hylKs8.png','https://cdn.nekos.life/wallpaper/oggceF06ONQ.jpg','https://cdn.nekos.life/wallpaper/ELdH2W5pQGo.jpg','https://cdn.nekos.life/wallpaper/Zun_n5pTMRE.png','https://cdn.nekos.life/wallpaper/VqhFKG5U15c.png','https://cdn.nekos.life/wallpaper/NsMoiW8JZ60.jpg','https://cdn.nekos.life/wallpaper/XE4iXbw__Us.png','https://cdn.nekos.life/wallpaper/a9yXhS2zbhU.jpg','https://cdn.nekos.life/wallpaper/jjnd31_3Ic8.jpg','https://cdn.nekos.life/wallpaper/Nxanxa-xO3s.png','https://cdn.nekos.life/wallpaper/dBHlPcbuDc4.jpg','https://cdn.nekos.life/wallpaper/6wUZIavGVQU.jpg','https://cdn.nekos.life/wallpaper/_-Z-0fGflRc.jpg','https://cdn.nekos.life/wallpaper/H9OUpIrF4gU.jpg','https://cdn.nekos.life/wallpaper/xlRdH3fBMz4.jpg','https://cdn.nekos.life/wallpaper/7IzUIeaae9o.jpg','https://cdn.nekos.life/wallpaper/FZCVL6PyWq0.jpg','https://cdn.nekos.life/wallpaper/5dG-HH6d0yw.png','https://cdn.nekos.life/wallpaper/ddxyA37HiwE.png','https://cdn.nekos.life/wallpaper/I0oj_jdCD4k.jpg','https://cdn.nekos.life/wallpaper/ABchTV97_Ts.png','https://cdn.nekos.life/wallpaper/58C37kkq39Y.png','https://cdn.nekos.life/wallpaper/HMS5mK7WSGA.jpg','https://cdn.nekos.life/wallpaper/1O3Yul9ojS8.jpg','https://cdn.nekos.life/wallpaper/hdZI1XsYWYY.jpg','https://cdn.nekos.life/wallpaper/h8pAJJnBXZo.png','https://cdn.nekos.life/wallpaper/apO9K9JIUp8.jpg','https://cdn.nekos.life/wallpaper/p8f8IY_2mwg.jpg','https://cdn.nekos.life/wallpaper/HY1WIB2r_cE.jpg','https://cdn.nekos.life/wallpaper/u02Y0-AJPL0.jpg','https://cdn.nekos.life/wallpaper/jzN74LcnwE8.png','https://cdn.nekos.life/wallpaper/IeAXo5nJhjw.jpg','https://cdn.nekos.life/wallpaper/7lgPyU5fuLY.jpg','https://cdn.nekos.life/wallpaper/f8SkRWzXVxk.png','https://cdn.nekos.life/wallpaper/ZmDTpGGeMR8.jpg','https://cdn.nekos.life/wallpaper/AMrcxZOnVBE.jpg','https://cdn.nekos.life/wallpaper/ZhP-f8Icmjs.jpg','https://cdn.nekos.life/wallpaper/7FyUHX3fE2o.jpg','https://cdn.nekos.life/wallpaper/CZoSLK-5ng8.png','https://cdn.nekos.life/wallpaper/pSNDyxP8l3c.png','https://cdn.nekos.life/wallpaper/AhYGHF6Fpck.jpg','https://cdn.nekos.life/wallpaper/ic6xRRptRes.jpg','https://cdn.nekos.life/wallpaper/89MQq6KaggI.png','https://cdn.nekos.life/wallpaper/y1DlFeHHTEE.png'] 574 | let walnimek = walnime[Math.floor(Math.random() * walnime.length)] 575 | client.sendFileFromUrl(from, walnimek, 'Nimek.jpg', '', message.id) 576 | break 577 | case 'meme': 578 | const response = await axios.get('https://meme-api.herokuapp.com/gimme/wholesomeanimemes'); 579 | const { postlink, title, subreddit, url, nsfw, spoiler } = response.data 580 | await client.sendFileFromUrl(from, `${url}`, 'meme.jpg', `${title}`) 581 | break 582 | case 'help': 583 | client.reply(from, help(prefix, pushname), message.id) 584 | break 585 | case 'info': 586 | client.reply(from, info, id) 587 | break 588 | case 'wa.me': 589 | case 'wame': 590 | await client.reply(from, `*This Is Your WhatsApp Number Link ${pushname}*\n\n*wa.me/${sender.id.replace(/[@c.us]/g, '')}*\n\n*or*\n\n*api.whatsapp.com/send?phone=${sender.id.replace(/[@c.us]/g, '')}*`) 591 | break 592 | case 'profile': 593 | if (quotedMsg) return profile(quotedMsgObj.sender.id, message, fs, groupAdmins, client) 594 | if (mentionedJidList.length >= 1) return profile(mentionedJidList[1], message, fs, groupAdmins, client) 595 | return profile(sender.id, message, fs, groupAdmins, client) 596 | break 597 | default: 598 | console.log(color('[PREFIX-CALL]', 'green'), color(time, 'yellow'), 'Command from', color(pushname)) 599 | return client.reply(from, 'No such Command!', id) 600 | break 601 | } 602 | } catch (err) { 603 | console.log(color('[ERROR]', 'red'), err) 604 | } 605 | } 606 | -------------------------------------------------------------------------------- /nonPrefix.js: -------------------------------------------------------------------------------- 1 | module.exports = { msg } 2 | async function msg(message, color, p, time) { 3 | if (message.type == 'chat') { 4 | const text = message.body.toLowerCase() 5 | switch (true) { 6 | case text.startsWith('an error'): 7 | sclient.reply(message.from, 'Link!', message.id) 8 | break 9 | case text.startsWith('omae wa mou shindeiru'): 10 | return sclient.reply(message.from, 'NANI!!', message.id) 11 | break 12 | /* eg case text.startsWith('your text'): 13 | sclient.reply(message.from, 'response' message.id) 14 | break*/ 15 | } 16 | } 17 | if (p) return console.log('[RECV]', color(time, 'yellow'), 'Message from', color(message.sender.pushname)) 18 | if (!p) return console.log('[RECV]', color(time, 'yellow'), 'Message from', color(message.sender.pushname), 'in', color(message.chat['name'])) 19 | } 20 | 21 | 22 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "whatsapp-botto-re", 3 | "version": "3.0.1", 4 | "description": "Anime Whatsapp Bot", 5 | "main": "kntl.js", 6 | "scripts": { 7 | "start": "node index.js", 8 | "test": "node test.js" 9 | }, 10 | "author": "SomnathDas & Alen Yohannan", 11 | "license": "GPL-3.0", 12 | "dependencies": { 13 | "@open-wa/wa-automate": "^3.0.6", 14 | "@open-wa/wa-decrypt": "^2.0.1", 15 | "akaneko": "^3.3.0", 16 | "area-selection-js": "0.0.2", 17 | "axios": "^0.21.1", 18 | "bent": "^7.3.10", 19 | "brainly-scraper": "^1.0.1", 20 | "emoji-strip": "^1.0.1", 21 | "ffmpeg": "0.0.4", 22 | "fs-extra": "^9.0.1", 23 | "gif-frames": "^1.0.1", 24 | "gifit": "0.0.3", 25 | "gifwrap": "^0.9.2", 26 | "gify": "^0.2.0", 27 | "google-translate-open-api": "^1.3.5", 28 | "got": "^11.5.2", 29 | "image-size": "^0.9.1", 30 | "image-to-pdf": "^1.0.0", 31 | "jimp": "^0.16.1", 32 | "moment-timezone": "^0.5.31", 33 | "multer": "^1.4.2", 34 | "mal-scraper": "^2.11.2", 35 | "nana-api": "^1.1.2", 36 | "nhentai-api": "^3.0.2", 37 | "nhentai-js": "^4.0.0", 38 | "node-fetch": "^2.6.1", 39 | "node-gtts": "^2.0.2", 40 | "node-run-cmd": "^1.0.1", 41 | "public-waifulist": "0.0.2", 42 | "remove.bg": "^1.3.0", 43 | "request": "^2.88.2", 44 | "saucenao": "0.0.2", 45 | "thumbbot": "^0.4.1", 46 | "tiktok-scraper": "^1.3.0", 47 | "video-crop": "^1.1.0", 48 | "video-crop-cli": "^1.1.0", 49 | "video-url-link": "^0.1.4", 50 | "ytdl": "^1.3.5" 51 | }, 52 | "directories": { 53 | "lib": "lib" 54 | }, 55 | "devDependencies": {}, 56 | "repository": { 57 | "type": "git", 58 | "url": "git+https://github.com/SomnathDas/whatsapp-botto-re.git" 59 | }, 60 | "keywords": [ 61 | "Whatsapp-Bot" 62 | ], 63 | "bugs": { 64 | "url": "https://github.com/SomnathDas/whatsapp-botto-re.git" 65 | }, 66 | "homepage": "https://github.com/SomnathDas/whatsapp-botto-re.git" 67 | } 68 | -------------------------------------------------------------------------------- /queue.js: -------------------------------------------------------------------------------- 1 | const sendSticker = require('./sendSticker') 2 | 3 | exports.mp3 = async function (message) { 4 | for (let i = 0; i < queuemp3.length; i++) { 5 | if (queuemp3[i].from == message.from) { 6 | console.log(queuemp3[i].from) 7 | yt.mp3(queuemp3[i]) 8 | queuemp3.splice(i, 1) 9 | } 10 | } 11 | } 12 | 13 | exports.mp4 = async function (message) { 14 | for (let i = 0; i < queuemp4.length; i++) { 15 | if (queuemp4[i].from == message.from) { 16 | console.log(queuemp4[i].from) 17 | yt.mp4(queuemp4[i]) 18 | queuemp4.splice(i, 1) 19 | return 20 | } 21 | } 22 | } 23 | 24 | exports.sendSticker = async function (message) { 25 | for (let i = 0; i < queueSticker.length; i++) { 26 | if (queueSticker[i].from == message.from) { 27 | console.log(queueSticker[i].from) 28 | sendSticker.sendSticker(queueSticker[i]) 29 | queueSticker.splice(i, 1) 30 | } 31 | } 32 | } 33 | exports.sendAnimatedSticker = async function (message) { 34 | for (let i = 0; i < queueAnimatedSticker.length; i++) { 35 | if (queueAnimatedSticker[i].from == message.from) { 36 | console.log(queueAnimatedSticker[i].from) 37 | sendSticker.sendAnimatedSticker(queueAnimatedSticker[i]) 38 | queueAnimatedSticker.splice(i, 1) 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /sendSticker.js: -------------------------------------------------------------------------------- 1 | const { decryptMedia } = require('@open-wa/wa-decrypt') 2 | const fs = require('fs-extra') 3 | const mime = require('mime-types') 4 | const nrc = require('node-run-cmd') 5 | const sizeOf = require('image-size') 6 | const gifFrames = require('gif-frames') 7 | const Jimp = require('jimp') 8 | const { GifFrame, GifUtil, GifCodec } = require('gifwrap') 9 | const queuejs = require('./queue') 10 | 11 | module.exports.sendAnimatedSticker = async function (message) { 12 | try { 13 | console.log(sendingAnimatedSticker) 14 | if (sendingAnimatedSticker.indexOf(message.from) > -1) { 15 | queueAnimatedSticker.push(message) 16 | return 17 | } else { 18 | } 19 | sendingAnimatedSticker.push(message.from) 20 | const buffer = await decryptMedia(message) 21 | const fileName = `./media/sticker/temp${message.from}.${mime.extension(message.mimetype)}` 22 | await fs.writeFileSync(fileName, buffer) 23 | await nrc.run(`ffmpeg -y -i ./media/sticker/temp${message.from}.mp4 ./media/sticker/${message.from}.gif`) 24 | await gifFrames({ url: './media/sticker/' + message.from + '.gif', frames: 'all' }).then(function (frameData) { 25 | frameData[0].getImage().pipe(fs.createWriteStream('./media/sticker/firstframe' + message.from + '.png')) 26 | frames = frameData 27 | }) 28 | // console.log(frames.length) 29 | 30 | if (frames.length < 7) { 31 | await nrc.run('convert ' + './media/sticker/' + message.from + '.gif ./media/sticker/' + message.from + '.gif ./media/sticker/' + message.from + '.gif') 32 | } 33 | 34 | await nrc.run('convert ' + './media/sticker/' + message.from + '.gif -coalesce -delete 0 ./media/sticker/' + message.from + '.gif') 35 | var dimensions = await sizeOf('./media/sticker/' + message.from + '.gif') 36 | success = true 37 | while (success) { 38 | await Jimp.read('./media/sticker/firstframe' + message.from + '.png') 39 | .then((image) => { 40 | for (let i = 1; i < dimensions.width; i++) { 41 | for (let j = 1; j < dimensions.height; j++) { 42 | Sleep(1) 43 | colors = Jimp.intToRGBA(image.getPixelColor(i, j)) 44 | if (colors.r > 155) { 45 | colors.r = colors.r - 5 46 | } else { 47 | colors.r = colors.r + 5 48 | } 49 | if (colors.g > 155) { 50 | colors.g = colors.g - 5 51 | } else { 52 | colors.g = colors.g + 5 53 | } 54 | if (colors.b > 155) { 55 | colors.b = colors.b - 5 56 | } else { 57 | colors.b = colors.b + 5 58 | } 59 | if (colors.a > 155) { 60 | colors.a = colors.a - 5 61 | } else { 62 | colors.a = colors.a + 5 63 | } 64 | 65 | hex = Jimp.rgbaToInt(colors.r, colors.g, colors.b, colors.a) 66 | 67 | // console.log(hex) 68 | image.setPixelColor(hex, i, j) // sets the colour of that pixel 69 | success = false 70 | } 71 | } 72 | image.write('./media/sticker/firstframe' + message.from + '.png') 73 | }) 74 | .catch((err) => { 75 | console.log('ERROR: ' + err) 76 | }) 77 | } 78 | await Sleep(1000) 79 | console.log(dimensions.width + ' ' + dimensions.height) 80 | if (dimensions.width < dimensions.height) { 81 | await nrc.run('mogrify -bordercolor transparent -border ' + (dimensions.height - dimensions.width) / 2 + 'x0 ./media/sticker/' + message.from + '.gif') 82 | await nrc.run('mogrify -bordercolor transparent -border ' + (dimensions.height - dimensions.width) / 2 + 'x0 ./media/sticker/firstframe' + message.from + '.png') 83 | } else if (dimensions.width > dimensions.height) { 84 | await nrc.run('mogrify -bordercolor transparent -border 0x' + (dimensions.width - dimensions.height) / 2 + ' ./media/sticker/' + message.from + '.gif') 85 | await nrc.run('mogrify -bordercolor transparent -border 0x' + (dimensions.width - dimensions.height) / 2 + ' ./media/sticker/firstframe' + message.from + '.png') 86 | } else { 87 | } 88 | await nrc.run('convert ' + './media/sticker/firstframe' + message.from + '.png' + ' ./media/sticker/' + message.from + '.gif -resize 256x256' + ' ./media/sticker/' + message.from + '.gif') 89 | stats = fs.statSync('./media/sticker/' + message.from + '.gif') 90 | console.log(stats['size']) 91 | try { 92 | await nrc.run(`gif2webp ./media/sticker/${message.from}.gif -o ./media/sticker/${message.from}.webp`) 93 | await nrc.run(`webpmux -set exif ./media/sticker/data.exif ./media/sticker/${message.from}.webp -o ./media/sticker/${message.from}.webp`) 94 | if (fs.existsSync(`./media/sticker/${message.from}.webp`)) { 95 | const contents = await fs.readFile(`./media/sticker/${message.from}.webp`, {encoding: 'base64'}) 96 | await sclient.sendRawWebpAsSticker(message.from, contents) 97 | } else { 98 | const gifData = await fs.readFile(`./media/sticker/${message.from}.webp`, {encoding: 'base64'}) 99 | await sclient.sendImageAsSticker(message.from, `data:image/gif;base64,${gifData}`) 100 | } 101 | } catch (error) { 102 | console.log(error) 103 | if (String(error) == 'Error: Processed image is too large for the WebP format') { 104 | sclient.reply(message.from, String(error), message.id.toString()) //Error: Processed image is too large for the WebP format 105 | } 106 | } 107 | 108 | for (let index = 0; index < sendingAnimatedSticker.length; index++) { 109 | if (sendingAnimatedSticker[index] == message.from) { 110 | sendingAnimatedSticker.splice([index], 1) 111 | } 112 | } 113 | if (queueAnimatedSticker.length != 0) { 114 | queuejs.sendAnimatedSticker(message) 115 | } 116 | delete require.cache[require.resolve('./queue')] 117 | 118 | } catch(err) { 119 | console.log(err) 120 | } 121 | } 122 | 123 | function Sleep(milliseconds) { 124 | return new Promise((resolve) => setTimeout(resolve, milliseconds)) 125 | } 126 | -------------------------------------------------------------------------------- /test.js: -------------------------------------------------------------------------------- 1 | const SauceNAO = require('saucenao') 2 | 3 | var base4 = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxQTEhUSExMWFRUVFxgWGBgYFhcVFhgXGBUWFxcXFxYYHSggGBolGxUVITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGxAQGy0lICYtLS0vLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIAKkBKgMBIgACEQEDEQH/xAAcAAACAwEBAQEAAAAAAAAAAAAEBQIDBgcBAAj/xABIEAACAQIEAwYDBQUGAwYHAAABAhEAAwQSITEFQVEGEyJhcZEygaEHFCOxwUJSYnLRFTNzkrLhgvDxFjRTorPSJENjdJOj0//EABsBAAIDAQEBAAAAAAAAAAAAAAMEAQIFBgAH/8QALxEAAgIBBAECBQIGAwAAAAAAAQIAAxEEEiExBRNBBiIyUWFxoRQVI4Gx0TNCkf/aAAwDAQACEQMRAD8AyGaqLl9R19jVOKxMaUvuYljz0oddMwUrLcxmxqCYkg6GqMK5YFY13md/lQhbxfOjMoIwZZa+cR9nnXrU1tVR97VXyoCwjlBimCoTqRB6VmWYUyhUieLbq1LdRGlEFdhzNLshJlcyllofFREUZicMRuImg3w0CiLXtPMtvzFd3h2cwCQTt0FTXs+gGpYt1kAe0VY18qwy701tgka71e2xl6hEsYDEHwuGyKF6Vd3dXMarLUkWJMnMovWCRpEg6VVfwtwmPCByiaOSrL+izzFEW0jiVMpFqKgUqy/eA3MTy50K+LExFHqAMFzK8adKR3LhGtM8XijmgISOZ151W/C3uCF6/wDOtHV1r+qO6Wiy5gqDJihbpmfzp3h+KTJb5ACP1q7D9lW/bcD01pgOz1sDdvcf0oN2pobudBV8OapxyAP1Mqt4wZTsDBMVRwh71wBFts7AxIEyJ302ponCgABowHJlU/UQafcI4oLC5TbQDecogejCCPmKrS+mJw3AgbvA6ynkr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elda = SauceNAO(link).json 7 | 8 | console.log(zelda) 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /welcome.js: -------------------------------------------------------------------------------- 1 | var emojiStrip = require('emoji-strip') 2 | const fs = require('fs-extra') 3 | 4 | module.exports = welcome = async (client, event) => { 5 | 6 | const wel = JSON.parse(fs.readFileSync('./lib/welcome.json')) 7 | const isWel = wel.includes(event.chat) 8 | try { 9 | if (event.action == 'add' && isWel) { 10 | const det = await client.getChatById(event.chat) 11 | const person = await client.getContact(event.who) 12 | await client.sendTextWithMentions(event.chat, `Welcome to *${det.contact.formattedName}!* \n\n@${event.who.replace('@c.us', '')} \n\nHave fun with us✨ \n\n *Group Description* ❤️ \n\n ${det.groupMetadata.desc}`) 13 | } 14 | } catch(err) { 15 | console.log(err) 16 | } 17 | } 18 | 19 | --------------------------------------------------------------------------------