[
  {
    "path": ".deepsource.toml",
    "content": "version = 1\n\n[[analyzers]]\nname = \"python\"\n\n  [analyzers.meta]\n  runtime_version = \"3.x.x\""
  },
  {
    "path": ".github/CODEOWNERS",
    "content": "\n"
  },
  {
    "path": ".github/CODE_OF_CONDUCT.md",
    "content": "# Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n- Using welcoming and inclusive language\n- Being respectful of differing viewpoints and experiences\n- Gracefully accepting constructive criticism\n- Focusing on what is best for the community\n- Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n- The use of sexualized language or imagery and unwelcome sexual attention or advances\n- Trolling, insulting/derogatory comments, and personal or political attacks\n- Public or private harassment\n- Publishing others' private information, such as a physical or electronic address, without explicit permission\n- Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [hi@yesbhautik.co.in](mailto:hi@yesbhautik.co.in). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 1.4, available at [https://www.contributor-covenant.org/version/1/4/code-of-conduct.html](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html).\n"
  },
  {
    "path": ".github/FUNDING.yml",
    "content": "github: yesbhautik\npatreon: \nopen_collective: \nko_fi: \ntidelift: \ncommunity_bridge: \nliberapay: \nissuehunt: \notechie: \nlfx_crowdfunding: \n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.md",
    "content": "---\nname: Bug report\nabout: Create a report to help us improve\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Describe the bug**\nA clear and concise description of what the bug is.\n\n**To Reproduce**\nSteps to reproduce the behavior:\n1. Go to '...'\n2. Click on '....'\n3. Scroll down to '....'\n4. See error\n\n**Expected behavior**\nA clear and concise description of what you expected to happen.\n\n**Screenshots**\nIf applicable, add screenshots to help explain your problem.\n\n**Desktop (please complete the following information):**\n - OS: [e.g. iOS]\n - Browser [e.g. chrome, safari]\n - Version [e.g. 22]\n\n**Smartphone (please complete the following information):**\n - Device: [e.g. iPhone6]\n - OS: [e.g. iOS8.1]\n - Browser [e.g. stock browser, safari]\n - Version [e.g. 22]\n\n**Additional context**\nAdd any other context about the problem here.\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.md",
    "content": "---\nname: Feature request\nabout: Suggest an idea for this project\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Is your feature request related to a problem? Please describe.**\nA clear and concise description of what the problem is. Ex. I'm always frustrated when [...]\n\n**Describe the solution you'd like**\nA clear and concise description of what you want to happen.\n\n**Describe alternatives you've considered**\nA clear and concise description of any alternative solutions or features you've considered.\n\n**Additional context**\nAdd any other context or screenshots about the feature request here.\n"
  },
  {
    "path": ".github/PULL_REQUEST_TEMPLATE.md",
    "content": "\n"
  },
  {
    "path": ".github/SECURITY.md",
    "content": "# Security Policy\n\n## Supported Versions\n\nUse this section to tell people about which versions of your project are currently being supported with security updates.\n\n| Version | Supported          |\n| ------- | ------------------ |\n| 2.1.0   | :white_check_mark: |\n| < 2.1.0 | :x:                |\n\n## Reporting a Vulnerability\n\nIf you believe you have found a security vulnerability in our project, we encourage you to let us know right away. We will investigate all legitimate reports and do our best to quickly fix the problem. Please do not disclose the issue publicly until we have had a chance to address it.\n\n### How to Report a Security Vulnerability?\n\nTo report a security issue, please send an email to [hi@yesbhautik.co.in](mailto:hi@yesbhautik.co.in) with the following information:\n- A clear description of the issue, including how it can be reproduced.\n- Any relevant screenshots or logs.\n- Your contact information for follow-up.\n\nWe take all security bugs seriously and appreciate your efforts to responsibly disclose your findings.\n\n### What to Expect?\n\nAfter submitting a report, you should receive an acknowledgment of your report within 48 hours, and we'll strive to keep you informed about our progress toward a fix and full announcement. We may also ask for additional information or guidance.\n\nThank you for helping keep our project and our users safe.\n"
  },
  {
    "path": ".gitignore",
    "content": "# ignore node modules\nnode_modules/\n\n# ignore /yesbhautik/* excluding convo.txt file\n/yesbhautik/*\n!/yesbhautik/convo.txt\n\n# ignore package-lock.json\npackage-lock.json\n\nkey.json\n"
  },
  {
    "path": "Docs/Deployment/Android.md",
    "content": "### Deploy on Android/Termux<br>\n1. Install Termux App: [Click link to download](https://f-droid.org/en/packages/com.termux/)\n\n2. Install NodeJS, nano and Git:\n   \n   ```bash\n   pkg install git nodejs nano -y\n   ```\n   \n3. Clone the repository:\n   \n   ```bash\n   git clone https://github.com/yesbhautik/Whatsapp-Ai-BOT\n   ```\n   \n4. Go to the project directory:\n   \n   ```bash\n   cd Whatsapp-Ai-BOT\n   ```\n   \n5. Install node_modules manually by downloading [here](https://go.yesbhautik.co.in/m1n07d1r) and extracting to the project directory.\n   \n6. Configure OpenAI API\n   \n   ```bash\n   cp example.key.json key.json\n   nano key.json\n   ```\n   > Replace \"OPENAI_API_KEY\" with your actual [OpenAI API](https://go.yesbhautik.co.in/8b2ayw) key.\n   \n7. Run the project:\n   ```\n   node index.js\n   ```\n"
  },
  {
    "path": "Docs/Deployment/Linux.md",
    "content": "### Deploy on Linux</br>\n1. Install NodeJS, nano and Git Bash.\n\n      ```bash\n      sudo apt -y remove nodejs\n      curl -fsSl https://deb.nodesource.com/setup_lts.x | sudo bash - && sudo apt -y install nodejs\n      apt install git nano -y\n      ```\n      \n2. Clone the repository:\n   \n   ```bash\n   git clone https://github.com/yesbhautik/Whatsapp-Ai-BOT\n   ```\n   \n3. Go to the project directory:\n   ```bash\n   cd Whatsapp-Ai-BOT\n   ```\n4. Clean NPM Cache:\n   \n   ```bash\n   npm cache clean --force\n   ```\n   \n5. Install dependencies:\n   \n   ```bash\n   npm i\n   ```\n   \n6. Configure OpenAI API\n   \n   ```bash\n   cp example.key.json key.json\n   nano key.json\n   ```\n   > Replace \"OPENAI_API_KEY\" with your actual [OpenAI API](https://go.yesbhautik.co.in/8b2ayw) key.\n   \n7. Run the project:\n   \n   ```bash\n   npm start\n   ```\n"
  },
  {
    "path": "Docs/Deployment/MacOS.md",
    "content": "### Deploy on MacOS</br>\n1. Install NodeJS, nano and Git Bash.\n\n      ```bash\n      sudo apt -y remove nodejs\n      curl -fsSl https://deb.nodesource.com/setup_lts.x | sudo bash - && sudo apt -y install nodejs\n      apt install git nano -y\n      ```\n      \n2. Clone the repository:\n   \n   ```bash\n   git clone https://github.com/yesbhautik/Whatsapp-Ai-BOT\n   ```\n   \n3. Go to the project directory:\n   ```bash\n   cd Whatsapp-Ai-BOT\n   ```\n4. Clean NPM Cache:\n   \n   ```bash\n   npm cache clean --force\n   ```\n   \n5. Install dependencies:\n   \n   ```bash\n   npm i\n   ```\n   \n6. Configure OpenAI API\n   \n   ```bash\n   cp example.key.json key.json\n   nano key.json\n   ```\n   > Replace \"OPENAI_API_KEY\" with your actual [OpenAI API](https://go.yesbhautik.co.in/8b2ayw) key.\n   \n7. Run the project:\n   \n   ```bash\n   npm start\n   ```\n\n"
  },
  {
    "path": "Docs/Deployment/Windows.md",
    "content": "### Deploy on Windows</br>\n1. Install NodeJS and Git Bash.\n      - NodeJS https://nodejs.org/en/download/ <br>\n      - Git https://git-scm.com/downloads/\n      - After this run following command in powershell\n   <br>\n\n   ```bash\n   npm install -g npm\n   ```\n\n2. Clone the repository:\n\n   ```bash\n   git clone https://github.com/yesbhautik/Whatsapp-Ai-BOT\n   ```\n\n3. Go to the project directory:\n\n   ```bash\n   cd Whatsapp-Ai-BOT\n   ```\n\n4. Clean NPM Cache:\n\n   ```bash\n   npm cache clean --force\n   ```\n\n5. Install dependencies:\n\n   ```bash\n   npm i\n   ```\n\n6. Configure OpenAI API\n\n   ```bash\n   cp example.key.json key.json\n   notepad key.json\n   ```\n\n   > Replace \"OPENAI_API_KEY\" with your actual [OpenAI API](https://go.yesbhautik.co.in/8b2ayw) key.\n7. Run the project:\n\n   ```bash\n   npm start\n   ```\n   \n"
  },
  {
    "path": "LICENSE",
    "content": "Attribution-NonCommercial-ShareAlike 4.0 International\n\n=======================================================================\n\nCreative Commons Corporation (\"Creative Commons\") is not a law firm and\ndoes not provide legal services or legal advice. Distribution of\nCreative Commons public licenses does not create a lawyer-client or\nother relationship. Creative Commons makes its licenses and related\ninformation available on an \"as-is\" basis. Creative Commons gives no\nwarranties regarding its licenses, any material licensed under their\nterms and conditions, or any related information. Creative Commons\ndisclaims all liability for damages resulting from their use to the\nfullest extent possible.\n\nUsing Creative Commons Public Licenses\n\nCreative Commons public licenses provide a standard set of terms and\nconditions that creators and other rights holders may use to share\noriginal works of authorship and other material subject to copyright\nand certain other rights specified in the public license below. The\nfollowing considerations are for informational purposes only, are not\nexhaustive, and do not form part of our licenses.\n\n     Considerations for licensors: Our public licenses are\n     intended for use by those authorized to give the public\n     permission to use material in ways otherwise restricted by\n     copyright and certain other rights. Our licenses are\n     irrevocable. Licensors should read and understand the terms\n     and conditions of the license they choose before applying it.\n     Licensors should also secure all rights necessary before\n     applying our licenses so that the public can reuse the\n     material as expected. Licensors should clearly mark any\n     material not subject to the license. This includes other CC-\n     licensed material, or material used under an exception or\n     limitation to copyright. More considerations for licensors:\n    wiki.creativecommons.org/Considerations_for_licensors\n\n     Considerations for the public: By using one of our public\n     licenses, a licensor grants the public permission to use the\n     licensed material under specified terms and conditions. If\n     the licensor's permission is not necessary for any reason--for\n     example, because of any applicable exception or limitation to\n     copyright--then that use is not regulated by the license. Our\n     licenses grant only permissions under copyright and certain\n     other rights that a licensor has authority to grant. Use of\n     the licensed material may still be restricted for other\n     reasons, including because others have copyright or other\n     rights in the material. A licensor may make special requests,\n     such as asking that all changes be marked or described.\n     Although not required by our licenses, you are encouraged to\n     respect those requests where reasonable. More considerations\n     for the public:\n    wiki.creativecommons.org/Considerations_for_licensees\n\n=======================================================================\n\nCreative Commons Attribution-NonCommercial-ShareAlike 4.0 International\nPublic License\n\nBy exercising the Licensed Rights (defined below), You accept and agree\nto be bound by the terms and conditions of this Creative Commons\nAttribution-NonCommercial-ShareAlike 4.0 International Public License\n(\"Public License\"). To the extent this Public License may be\ninterpreted as a contract, You are granted the Licensed Rights in\nconsideration of Your acceptance of these terms and conditions, and the\nLicensor grants You such rights in consideration of benefits the\nLicensor receives from making the Licensed Material available under\nthese terms and conditions.\n\n\nSection 1 -- Definitions.\n\n  a. Adapted Material means material subject to Copyright and Similar\n     Rights that is derived from or based upon the Licensed Material\n     and in which the Licensed Material is translated, altered,\n     arranged, transformed, or otherwise modified in a manner requiring\n     permission under the Copyright and Similar Rights held by the\n     Licensor. For purposes of this Public License, where the Licensed\n     Material is a musical work, performance, or sound recording,\n     Adapted Material is always produced where the Licensed Material is\n     synched in timed relation with a moving image.\n\n  b. Adapter's License means the license You apply to Your Copyright\n     and Similar Rights in Your contributions to Adapted Material in\n     accordance with the terms and conditions of this Public License.\n\n  c. BY-NC-SA Compatible License means a license listed at\n     creativecommons.org/compatiblelicenses, approved by Creative\n     Commons as essentially the equivalent of this Public License.\n\n  d. Copyright and Similar Rights means copyright and/or similar rights\n     closely related to copyright including, without limitation,\n     performance, broadcast, sound recording, and Sui Generis Database\n     Rights, without regard to how the rights are labeled or\n     categorized. For purposes of this Public License, the rights\n     specified in Section 2(b)(1)-(2) are not Copyright and Similar\n     Rights.\n\n  e. Effective Technological Measures means those measures that, in the\n     absence of proper authority, may not be circumvented under laws\n     fulfilling obligations under Article 11 of the WIPO Copyright\n     Treaty adopted on December 20, 1996, and/or similar international\n     agreements.\n\n  f. Exceptions and Limitations means fair use, fair dealing, and/or\n     any other exception or limitation to Copyright and Similar Rights\n     that applies to Your use of the Licensed Material.\n\n  g. License Elements means the license attributes listed in the name\n     of a Creative Commons Public License. The License Elements of this\n     Public License are Attribution, NonCommercial, and ShareAlike.\n\n  h. Licensed Material means the artistic or literary work, database,\n     or other material to which the Licensor applied this Public\n     License.\n\n  i. Licensed Rights means the rights granted to You subject to the\n     terms and conditions of this Public License, which are limited to\n     all Copyright and Similar Rights that apply to Your use of the\n     Licensed Material and that the Licensor has authority to license.\n\n  j. Licensor means the individual(s) or entity(ies) granting rights\n     under this Public License.\n\n  k. NonCommercial means not primarily intended for or directed towards\n     commercial advantage or monetary compensation. For purposes of\n     this Public License, the exchange of the Licensed Material for\n     other material subject to Copyright and Similar Rights by digital\n     file-sharing or similar means is NonCommercial provided there is\n     no payment of monetary compensation in connection with the\n     exchange.\n\n  l. Share means to provide material to the public by any means or\n     process that requires permission under the Licensed Rights, such\n     as reproduction, public display, public performance, distribution,\n     dissemination, communication, or importation, and to make material\n     available to the public including in ways that members of the\n     public may access the material from a place and at a time\n     individually chosen by them.\n\n  m. Sui Generis Database Rights means rights other than copyright\n     resulting from Directive 96/9/EC of the European Parliament and of\n     the Council of 11 March 1996 on the legal protection of databases,\n     as amended and/or succeeded, as well as other essentially\n     equivalent rights anywhere in the world.\n\n  n. You means the individual or entity exercising the Licensed Rights\n     under this Public License. Your has a corresponding meaning.\n\n\nSection 2 -- Scope.\n\n  a. License grant.\n\n       1. Subject to the terms and conditions of this Public License,\n          the Licensor hereby grants You a worldwide, royalty-free,\n          non-sublicensable, non-exclusive, irrevocable license to\n          exercise the Licensed Rights in the Licensed Material to:\n\n            a. reproduce and Share the Licensed Material, in whole or\n               in part, for NonCommercial purposes only; and\n\n            b. produce, reproduce, and Share Adapted Material for\n               NonCommercial purposes only.\n\n       2. Exceptions and Limitations. For the avoidance of doubt, where\n          Exceptions and Limitations apply to Your use, this Public\n          License does not apply, and You do not need to comply with\n          its terms and conditions.\n\n       3. Term. The term of this Public License is specified in Section\n          6(a).\n\n       4. Media and formats; technical modifications allowed. The\n          Licensor authorizes You to exercise the Licensed Rights in\n          all media and formats whether now known or hereafter created,\n          and to make technical modifications necessary to do so. The\n          Licensor waives and/or agrees not to assert any right or\n          authority to forbid You from making technical modifications\n          necessary to exercise the Licensed Rights, including\n          technical modifications necessary to circumvent Effective\n          Technological Measures. For purposes of this Public License,\n          simply making modifications authorized by this Section 2(a)\n          (4) never produces Adapted Material.\n\n       5. Downstream recipients.\n\n            a. Offer from the Licensor -- Licensed Material. Every\n               recipient of the Licensed Material automatically\n               receives an offer from the Licensor to exercise the\n               Licensed Rights under the terms and conditions of this\n               Public License.\n\n            b. Additional offer from the Licensor -- Adapted Material.\n               Every recipient of Adapted Material from You\n               automatically receives an offer from the Licensor to\n               exercise the Licensed Rights in the Adapted Material\n               under the conditions of the Adapter's License You apply.\n\n            c. No downstream restrictions. You may not offer or impose\n               any additional or different terms or conditions on, or\n               apply any Effective Technological Measures to, the\n               Licensed Material if doing so restricts exercise of the\n               Licensed Rights by any recipient of the Licensed\n               Material.\n\n       6. No endorsement. Nothing in this Public License constitutes or\n          may be construed as permission to assert or imply that You\n          are, or that Your use of the Licensed Material is, connected\n          with, or sponsored, endorsed, or granted official status by,\n          the Licensor or others designated to receive attribution as\n          provided in Section 3(a)(1)(A)(i).\n\n  b. Other rights.\n\n       1. Moral rights, such as the right of integrity, are not\n          licensed under this Public License, nor are publicity,\n          privacy, and/or other similar personality rights; however, to\n          the extent possible, the Licensor waives and/or agrees not to\n          assert any such rights held by the Licensor to the limited\n          extent necessary to allow You to exercise the Licensed\n          Rights, but not otherwise.\n\n       2. Patent and trademark rights are not licensed under this\n          Public License.\n\n       3. To the extent possible, the Licensor waives any right to\n          collect royalties from You for the exercise of the Licensed\n          Rights, whether directly or through a collecting society\n          under any voluntary or waivable statutory or compulsory\n          licensing scheme. In all other cases the Licensor expressly\n          reserves any right to collect such royalties, including when\n          the Licensed Material is used other than for NonCommercial\n          purposes.\n\n\nSection 3 -- License Conditions.\n\nYour exercise of the Licensed Rights is expressly made subject to the\nfollowing conditions.\n\n  a. Attribution.\n\n       1. If You Share the Licensed Material (including in modified\n          form), You must:\n\n            a. retain the following if it is supplied by the Licensor\n               with the Licensed Material:\n\n                 i. identification of the creator(s) of the Licensed\n                    Material and any others designated to receive\n                    attribution, in any reasonable manner requested by\n                    the Licensor (including by pseudonym if\n                    designated);\n\n                ii. a copyright notice;\n\n               iii. a notice that refers to this Public License;\n\n                iv. a notice that refers to the disclaimer of\n                    warranties;\n\n                 v. a URI or hyperlink to the Licensed Material to the\n                    extent reasonably practicable;\n\n            b. indicate if You modified the Licensed Material and\n               retain an indication of any previous modifications; and\n\n            c. indicate the Licensed Material is licensed under this\n               Public License, and include the text of, or the URI or\n               hyperlink to, this Public License.\n\n       2. You may satisfy the conditions in Section 3(a)(1) in any\n          reasonable manner based on the medium, means, and context in\n          which You Share the Licensed Material. For example, it may be\n          reasonable to satisfy the conditions by providing a URI or\n          hyperlink to a resource that includes the required\n          information.\n       3. If requested by the Licensor, You must remove any of the\n          information required by Section 3(a)(1)(A) to the extent\n          reasonably practicable.\n\n  b. ShareAlike.\n\n     In addition to the conditions in Section 3(a), if You Share\n     Adapted Material You produce, the following conditions also apply.\n\n       1. The Adapter's License You apply must be a Creative Commons\n          license with the same License Elements, this version or\n          later, or a BY-NC-SA Compatible License.\n\n       2. You must include the text of, or the URI or hyperlink to, the\n          Adapter's License You apply. You may satisfy this condition\n          in any reasonable manner based on the medium, means, and\n          context in which You Share Adapted Material.\n\n       3. You may not offer or impose any additional or different terms\n          or conditions on, or apply any Effective Technological\n          Measures to, Adapted Material that restrict exercise of the\n          rights granted under the Adapter's License You apply.\n\n\nSection 4 -- Sui Generis Database Rights.\n\nWhere the Licensed Rights include Sui Generis Database Rights that\napply to Your use of the Licensed Material:\n\n  a. for the avoidance of doubt, Section 2(a)(1) grants You the right\n     to extract, reuse, reproduce, and Share all or a substantial\n     portion of the contents of the database for NonCommercial purposes\n     only;\n\n  b. if You include all or a substantial portion of the database\n     contents in a database in which You have Sui Generis Database\n     Rights, then the database in which You have Sui Generis Database\n     Rights (but not its individual contents) is Adapted Material,\n     including for purposes of Section 3(b); and\n\n  c. You must comply with the conditions in Section 3(a) if You Share\n     all or a substantial portion of the contents of the database.\n\nFor the avoidance of doubt, this Section 4 supplements and does not\nreplace Your obligations under this Public License where the Licensed\nRights include other Copyright and Similar Rights.\n\n\nSection 5 -- Disclaimer of Warranties and Limitation of Liability.\n\n  a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE\n     EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS\n     AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF\n     ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,\n     IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,\n     WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR\n     PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,\n     ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT\n     KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT\n     ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.\n\n  b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE\n     TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,\n     NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,\n     INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,\n     COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR\n     USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN\n     ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR\n     DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR\n     IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.\n\n  c. The disclaimer of warranties and limitation of liability provided\n     above shall be interpreted in a manner that, to the extent\n     possible, most closely approximates an absolute disclaimer and\n     waiver of all liability.\n\n\nSection 6 -- Term and Termination.\n\n  a. This Public License applies for the term of the Copyright and\n     Similar Rights licensed here. However, if You fail to comply with\n     this Public License, then Your rights under this Public License\n     terminate automatically.\n\n  b. Where Your right to use the Licensed Material has terminated under\n     Section 6(a), it reinstates:\n\n       1. automatically as of the date the violation is cured, provided\n          it is cured within 30 days of Your discovery of the\n          violation; or\n\n       2. upon express reinstatement by the Licensor.\n\n     For the avoidance of doubt, this Section 6(b) does not affect any\n     right the Licensor may have to seek remedies for Your violations\n     of this Public License.\n\n  c. For the avoidance of doubt, the Licensor may also offer the\n     Licensed Material under separate terms or conditions or stop\n     distributing the Licensed Material at any time; however, doing so\n     will not terminate this Public License.\n\n  d. Sections 1, 5, 6, 7, and 8 survive termination of this Public\n     License.\n\n\nSection 7 -- Other Terms and Conditions.\n\n  a. The Licensor shall not be bound by any additional or different\n     terms or conditions communicated by You unless expressly agreed.\n\n  b. Any arrangements, understandings, or agreements regarding the\n     Licensed Material not stated herein are separate from and\n     independent of the terms and conditions of this Public License.\n\n\nSection 8 -- Interpretation.\n\n  a. For the avoidance of doubt, this Public License does not, and\n     shall not be interpreted to, reduce, limit, restrict, or impose\n     conditions on any use of the Licensed Material that could lawfully\n     be made without permission under this Public License.\n\n  b. To the extent possible, if any provision of this Public License is\n     deemed unenforceable, it shall be automatically reformed to the\n     minimum extent necessary to make it enforceable. If the provision\n     cannot be reformed, it shall be severed from this Public License\n     without affecting the enforceability of the remaining terms and\n     conditions.\n\n  c. No term or condition of this Public License will be waived and no\n     failure to comply consented to unless expressly agreed to by the\n     Licensor.\n\n  d. Nothing in this Public License constitutes or may be interpreted\n     as a limitation upon, or waiver of, any privileges and immunities\n     that apply to the Licensor or You, including from the legal\n     processes of any jurisdiction or authority.\n\n=======================================================================\n\nCreative Commons is not a party to its public\nlicenses. Notwithstanding, Creative Commons may elect to apply one of\nits public licenses to material it publishes and in those instances\nwill be considered the “Licensor.” The text of the Creative Commons\npublic licenses is dedicated to the public domain under the CC0 Public\nDomain Dedication. Except for the limited purpose of indicating that\nmaterial is shared under a Creative Commons public license or as\notherwise permitted by the Creative Commons policies published at\ncreativecommons.org/policies, Creative Commons does not authorize the\nuse of the trademark \"Creative Commons\" or any other trademark or logo\nof Creative Commons without its prior written consent including,\nwithout limitation, in connection with any unauthorized modifications\nto any of its public licenses or any other arrangements,\nunderstandings, or agreements concerning use of licensed material. For\nthe avoidance of doubt, this paragraph does not form part of the\npublic licenses.\n\nCreative Commons may be contacted at creativecommons.org.\n"
  },
  {
    "path": "README.md",
    "content": "# 💬 Whatsapp-Ai-BOT 🤖\nA cutting-edge AI chatbot for WhatsApp 🤖💬 built using NodeJS technology and powered by OpenAI. This project leverages the advanced deep learning models of ChatGPT, Playground, and DALL·E from OpenAI.\n\n## 💻 Created with NodeJS and Baileys Library\nThis repository contains the source code for a WhatsApp AI Bot that utilizes OpenAI's ChatGPT and DALL-E technology to provide a unique text-based and image-based conversational experience for users. The library used for integration is [﻿Baileys](https://github.com/WhiskeySockets/Baileys). \n\n## 🔍 READ FIRST\nPlease note that this bot has 2 features - ChatGPT (text) and DALL-E (Text To Image). To use these features, simply use the commands `/ai`, `/img`, and `/sc` respectively.\n\n## 🔒 Unlock the Magic\nThe magic of this AI WhatsApp bot lies in its code, which has been carefully crafted and encrypted to protect it from prying eyes. But don't worry, if you need to take a closer look and understand the workings of the bot, just drop me a message on my website or LinkedIn. I'll be happy to share the key to unlock the full potential of this amazing creation. 🔓\n\n## 🔴 Get LLMs official API at affordable price\nGive a ping on [﻿Telegram](https://t.me/yesbhautik) | [﻿WhatsApp](https://wa.me/+916353586391) \n\n## 📦 Code Distribution\n| Features | FREE | PRIME |\n| ----- | ----- | ----- |\n| Encrypted code (no changes in functionality) | ✅ | ❌ |\n| History mode | ❌ | ✅ |\n| Prime Support | ❌ | ✅ |\n| Customizable | ❌ | ✅ |\n| DALL-E 3 with resolution Mods | ❌ | ✅ |\n| GPT4 | ❌ | ✅ |\n| Decrypted code | ❌ | ✅ |\n| Regular Updates | ❌ | ✅ |\n| Exclusive API offers | ❌ | ✅ |\n| Commercial allowed licence | ❌ | ✅ |\n\n### Get access to [PRIME REPO](https://pages.razorpay.com/Whatsapp-Ai-BOT)\n\n## 🚀 Getting Started\n>  Get an OpenAI API Key by creating an account [﻿here](https://go.yesbhautik.co.in/l76e5p). \n\nReplace the API Key in the `key.json` file. \n\n## Deployment Documentation\n### [﻿Windows](https://github.com/yesbhautik/Whatsapp-Ai-BOT/blob/main/Docs/Deployment/Windows.md)\n\n### [﻿Linux](https://github.com/yesbhautik/Whatsapp-Ai-BOT/blob/main/Docs/Deployment/Linux.md)\n\n### [﻿MacOS](https://github.com/yesbhautik/Whatsapp-Ai-BOT/blob/main/Docs/Deployment/MacOS.md) \n### [﻿Android/Termux](https://github.com/yesbhautik/Whatsapp-Ai-BOT/blob/main/Docs/Deployment/Android.md)\n\n## ![Donate](youtube.png \"\")\n\n\nTo learn more about this AI WhatsApp bot and its features, you can watch the tutorial videos on my YouTube channel. Visit [﻿here](https://youtu.be/4lk6IMZ544s) to access the videos.\n\n## Contributing 🤝\nContributions are welcome! Please follow these steps to contribute to the project:\n\n>  Fork the repository🍴 \n\nCreate a new branch for your feature or bug fix 🌿 \n\nMake your changes and commit them 💻 \n\nPush your changes to your fork 🚀 \n\nCreate a pull request to the main repository 📥 \n \n\n## 🔥 Show some support | Donation\nIf you find this repository helpful, show your support by giving it a 🌟! Your support means a lot to me and helps me keep contributing to the open-source community.\n\nAlso, if you'd like to support & motivate me for hard work, you can do so via my donation link: [﻿https://rzp.io/l/Whatsapp-Ai-BOT](https://rzp.io/l/Whatsapp-Ai-BOT)\n\n\n\n## 💬 Let's Connect\nFeel free to reach out to us if you have questions, ideas, or simply want to chat. We're here to help and connect with the community. \n\n[﻿Website](https://yesbhautik.co.in/) | [﻿YesbhautikX](https://yesbhautikx.co.in/) | [﻿LinkedIn](https://www.linkedin.com/in/yesbhautik) | [﻿GitHub](https://github.com/yesbhautik) \n\n## 📜 License\nThis repository is licensed under a [﻿Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-nc-sa/4.0/). For more information, see the [﻿LICENSE](LICENSE) file.\n\n\n\n<!--- Eraser file: https://app.eraser.io/workspace/yaybhl5onK6i8JeUiGxJ --->\n"
  },
  {
    "path": "example.key.json",
    "content": "{\n  \"keyopenai\": \"OPENAI_API_KEY\",\n  \"donate\": \"Support WhatsApp-Ai-BOT Project and in return, get exclusive access to PRIME version. https://rzp.io/l/Whatsapp-Ai-BOT\"\n}"
  },
  {
    "path": "index.js",
    "content": "function _0x4f7b(_0x260f88, _0x270b96) {\n  const _0x5ea8eb = _0x5ea8();\n  return (\n    (_0x4f7b = function (_0x4f7b5e, _0x41a01f) {\n      _0x4f7b5e = _0x4f7b5e - 0x192;\n      let _0x5aa78b = _0x5ea8eb[_0x4f7b5e];\n      return _0x5aa78b;\n    }),\n    _0x4f7b(_0x260f88, _0x270b96)\n  );\n}\nconst _0x4003d6 = _0x4f7b;\n(function (_0x1cc439, _0x99636c) {\n  const _0x109c7f = _0x4f7b,\n    _0xda7897 = _0x1cc439();\n  while (!![]) {\n    try {\n      const _0x18c644 =\n        (parseInt(_0x109c7f(0x1fc)) / 0x1) *\n          (parseInt(_0x109c7f(0x19a)) / 0x2) +\n        parseInt(_0x109c7f(0x1de)) / 0x3 +\n        -parseInt(_0x109c7f(0x1c0)) / 0x4 +\n        -parseInt(_0x109c7f(0x21e)) / 0x5 +\n        (parseInt(_0x109c7f(0x1b3)) / 0x6) *\n          (-parseInt(_0x109c7f(0x193)) / 0x7) +\n        (parseInt(_0x109c7f(0x201)) / 0x8) *\n          (-parseInt(_0x109c7f(0x1b5)) / 0x9) +\n        parseInt(_0x109c7f(0x1c9)) / 0xa;\n      if (_0x18c644 === _0x99636c) break;\n      else _0xda7897[\"push\"](_0xda7897[\"shift\"]());\n    } catch (_0x5e992d) {\n      _0xda7897[\"push\"](_0xda7897[\"shift\"]());\n    }\n  }\n})(_0x5ea8, 0xc9022);\nconst sessionName = \"Yesbhautik\",\n  donet = _0x4003d6(0x205),\n  owner = [_0x4003d6(0x1e1)],\n  {\n    default: yesbhautikaiConnect,\n    useMultiFileAuthState,\n    DisconnectReason,\n    fetchLatestBaileysVersion,\n    makeInMemoryStore,\n    jidDecode,\n    proto,\n    getContentType,\n    Browsers,\n    fetchLatestWaWebVersion,\n  } = require(_0x4003d6(0x213)),\n  pino = require(\"pino\"),\n  { Boom } = require(\"@hapi/boom\"),\n  fs = require(\"fs\"),\n  axios = require(_0x4003d6(0x221)),\n  chalk = require(_0x4003d6(0x1e7)),\n  figlet = require(_0x4003d6(0x1ed)),\n  _ = require(_0x4003d6(0x214)),\n  PhoneNumber = require(\"awesome-phonenumber\"),\n  store = makeInMemoryStore({\n    logger: pino()[_0x4003d6(0x1aa)]({\n      level: _0x4003d6(0x20e),\n      stream: _0x4003d6(0x212),\n    }),\n  }),\n  color = (_0x50bd69, _0x66a585) => {\n    const _0x3aa087 = _0x4003d6;\n    return !_0x66a585\n      ? chalk[_0x3aa087(0x1e8)](_0x50bd69)\n      : chalk[_0x3aa087(0x1f1)](_0x66a585)(_0x50bd69);\n  };\nfunction smsg(_0x1ac937, _0x3e6a42, _0xd50a88) {\n  const _0x57788a = _0x4003d6;\n  if (!_0x3e6a42) return _0x3e6a42;\n  let _0x533f62 = proto[_0x57788a(0x20c)];\n  if (_0x3e6a42[_0x57788a(0x1f0)]) {\n    (_0x3e6a42[\"id\"] = _0x3e6a42[_0x57788a(0x1f0)][\"id\"]),\n      (_0x3e6a42[_0x57788a(0x1e9)] =\n        _0x3e6a42[\"id\"][_0x57788a(0x1dc)](_0x57788a(0x1bf)) &&\n        _0x3e6a42[\"id\"][_0x57788a(0x1a7)] === 0x10),\n      (_0x3e6a42[_0x57788a(0x1f2)] = _0x3e6a42[\"key\"][\"remoteJid\"]),\n      (_0x3e6a42[_0x57788a(0x1a2)] = _0x3e6a42[\"key\"][_0x57788a(0x1a2)]),\n      (_0x3e6a42[_0x57788a(0x1cc)] = _0x3e6a42[\"chat\"][\"endsWith\"](\n        _0x57788a(0x194)\n      )),\n      (_0x3e6a42[_0x57788a(0x1f9)] = _0x1ac937[_0x57788a(0x1d2)](\n        (_0x3e6a42[\"fromMe\"] && _0x1ac937[\"user\"][\"id\"]) ||\n          _0x3e6a42[_0x57788a(0x217)] ||\n          _0x3e6a42[_0x57788a(0x1f0)][\"participant\"] ||\n          _0x3e6a42[_0x57788a(0x1f2)] ||\n          \"\"\n      ));\n    if (_0x3e6a42[\"isGroup\"])\n      _0x3e6a42[_0x57788a(0x217)] =\n        _0x1ac937[_0x57788a(0x1d2)](_0x3e6a42[\"key\"][\"participant\"]) || \"\";\n  }\n  if (_0x3e6a42[_0x57788a(0x1c1)]) {\n    (_0x3e6a42[_0x57788a(0x1ab)] = getContentType(_0x3e6a42[_0x57788a(0x1c1)])),\n      (_0x3e6a42[_0x57788a(0x1fe)] =\n        _0x3e6a42[_0x57788a(0x1ab)] == _0x57788a(0x1d0)\n          ? _0x3e6a42[_0x57788a(0x1c1)][_0x3e6a42[_0x57788a(0x1ab)]][\"message\"][\n              getContentType(\n                _0x3e6a42[_0x57788a(0x1c1)][_0x3e6a42[_0x57788a(0x1ab)]][\n                  _0x57788a(0x1c1)\n                ]\n              )\n            ]\n          : _0x3e6a42[\"message\"][_0x3e6a42[_0x57788a(0x1ab)]]),\n      (_0x3e6a42[_0x57788a(0x19b)] =\n        _0x3e6a42[_0x57788a(0x1c1)][\"conversation\"] ||\n        _0x3e6a42[_0x57788a(0x1fe)][_0x57788a(0x19e)] ||\n        _0x3e6a42[_0x57788a(0x1fe)][\"text\"] ||\n        (_0x3e6a42[_0x57788a(0x1ab)] == _0x57788a(0x1e6) &&\n          _0x3e6a42[\"msg\"][_0x57788a(0x1c3)][_0x57788a(0x1bd)]) ||\n        (_0x3e6a42[\"mtype\"] == _0x57788a(0x1f4) &&\n          _0x3e6a42[_0x57788a(0x1fe)][\"selectedButtonId\"]) ||\n        (_0x3e6a42[_0x57788a(0x1ab)] == _0x57788a(0x1d0) &&\n          _0x3e6a42[\"msg\"][_0x57788a(0x19e)]) ||\n        _0x3e6a42[\"text\"]);\n    let _0x1832d0 = (_0x3e6a42[_0x57788a(0x200)] = _0x3e6a42[_0x57788a(0x1fe)][\n      _0x57788a(0x1b0)\n    ]\n      ? _0x3e6a42[_0x57788a(0x1fe)][_0x57788a(0x1b0)][_0x57788a(0x1a1)]\n      : null);\n    _0x3e6a42[_0x57788a(0x220)] = _0x3e6a42[\"msg\"][_0x57788a(0x1b0)]\n      ? _0x3e6a42[_0x57788a(0x1fe)][\"contextInfo\"][_0x57788a(0x220)]\n      : [];\n    if (_0x3e6a42[_0x57788a(0x200)]) {\n      let _0xbc61e8 = getContentType(_0x1832d0);\n      _0x3e6a42[_0x57788a(0x200)] = _0x3e6a42[_0x57788a(0x200)][_0xbc61e8];\n      [_0x57788a(0x20a)][\"includes\"](_0xbc61e8) &&\n        ((_0xbc61e8 = getContentType(_0x3e6a42[\"quoted\"])),\n        (_0x3e6a42[_0x57788a(0x200)] = _0x3e6a42[_0x57788a(0x200)][_0xbc61e8]));\n      if (typeof _0x3e6a42[_0x57788a(0x200)] === _0x57788a(0x1ef))\n        _0x3e6a42[_0x57788a(0x200)] = { text: _0x3e6a42[_0x57788a(0x200)] };\n      (_0x3e6a42[_0x57788a(0x200)][_0x57788a(0x1ab)] = _0xbc61e8),\n        (_0x3e6a42[_0x57788a(0x200)][\"id\"] =\n          _0x3e6a42[_0x57788a(0x1fe)][\"contextInfo\"][_0x57788a(0x1be)]),\n        (_0x3e6a42[_0x57788a(0x200)][\"chat\"] =\n          _0x3e6a42[_0x57788a(0x1fe)][_0x57788a(0x1b0)][_0x57788a(0x216)] ||\n          _0x3e6a42[_0x57788a(0x1f2)]),\n        (_0x3e6a42[\"quoted\"][_0x57788a(0x1e9)] = _0x3e6a42[_0x57788a(0x200)][\n          \"id\"\n        ]\n          ? _0x3e6a42[_0x57788a(0x200)][\"id\"][_0x57788a(0x1dc)](\"BAE5\") &&\n            _0x3e6a42[\"quoted\"][\"id\"][_0x57788a(0x1a7)] === 0x10\n          : ![]),\n        (_0x3e6a42[_0x57788a(0x200)][_0x57788a(0x1f9)] = _0x1ac937[\"decodeJid\"](\n          _0x3e6a42[_0x57788a(0x1fe)][_0x57788a(0x1b0)][_0x57788a(0x217)]\n        )),\n        (_0x3e6a42[\"quoted\"][_0x57788a(0x1a2)] =\n          _0x3e6a42[_0x57788a(0x200)][\"sender\"] ===\n          _0x1ac937[_0x57788a(0x1d2)](_0x1ac937[_0x57788a(0x20d)][\"id\"])),\n        (_0x3e6a42[_0x57788a(0x200)][\"text\"] =\n          _0x3e6a42[_0x57788a(0x200)][\"text\"] ||\n          _0x3e6a42[_0x57788a(0x200)][\"caption\"] ||\n          _0x3e6a42[_0x57788a(0x200)][_0x57788a(0x1c6)] ||\n          _0x3e6a42[_0x57788a(0x200)][_0x57788a(0x209)] ||\n          _0x3e6a42[_0x57788a(0x200)][_0x57788a(0x203)] ||\n          _0x3e6a42[_0x57788a(0x200)][_0x57788a(0x1e0)] ||\n          \"\"),\n        (_0x3e6a42[\"quoted\"][_0x57788a(0x220)] = _0x3e6a42[_0x57788a(0x1fe)][\n          \"contextInfo\"\n        ]\n          ? _0x3e6a42[\"msg\"][_0x57788a(0x1b0)][\"mentionedJid\"]\n          : []),\n        (_0x3e6a42[_0x57788a(0x1a9)] = _0x3e6a42[_0x57788a(0x1ac)] =\n          async () => {\n            const _0x4a86e5 = _0x57788a;\n            if (!_0x3e6a42[_0x4a86e5(0x200)][\"id\"]) return ![];\n            let _0x3d8d39 = await _0xd50a88[_0x4a86e5(0x1b7)](\n              _0x3e6a42[_0x4a86e5(0x1f2)],\n              _0x3e6a42[_0x4a86e5(0x200)][\"id\"],\n              _0x1ac937\n            );\n            return exports[_0x4a86e5(0x1b9)](_0x1ac937, _0x3d8d39, _0xd50a88);\n          });\n      let _0x5b03c3 = (_0x3e6a42[\"quoted\"][_0x57788a(0x1a0)] = _0x533f62[\n        _0x57788a(0x1af)\n      ]({\n        key: {\n          remoteJid: _0x3e6a42[_0x57788a(0x200)][_0x57788a(0x1f2)],\n          fromMe: _0x3e6a42[\"quoted\"][\"fromMe\"],\n          id: _0x3e6a42[_0x57788a(0x200)][\"id\"],\n        },\n        message: _0x1832d0,\n        ...(_0x3e6a42[\"isGroup\"]\n          ? { participant: _0x3e6a42[_0x57788a(0x200)][\"sender\"] }\n          : {}),\n      }));\n      (_0x3e6a42[\"quoted\"][_0x57788a(0x1cf)] = () =>\n        _0x1ac937[_0x57788a(0x1ae)](\n          _0x3e6a42[_0x57788a(0x200)][_0x57788a(0x1f2)],\n          { delete: _0x5b03c3[_0x57788a(0x1f0)] }\n        )),\n        (_0x3e6a42[_0x57788a(0x200)][_0x57788a(0x19c)] = (\n          _0xcf095c,\n          _0x284131 = ![],\n          _0x27765b = {}\n        ) =>\n          _0x1ac937[\"copyNForward\"](\n            _0xcf095c,\n            _0x5b03c3,\n            _0x284131,\n            _0x27765b\n          )),\n        (_0x3e6a42[_0x57788a(0x200)][_0x57788a(0x21f)] = () =>\n          _0x1ac937[_0x57788a(0x198)](_0x3e6a42[_0x57788a(0x200)]));\n    }\n  }\n  if (_0x3e6a42[_0x57788a(0x1fe)][_0x57788a(0x1fd)])\n    _0x3e6a42[\"download\"] = () =>\n      _0x1ac937[_0x57788a(0x198)](_0x3e6a42[_0x57788a(0x1fe)]);\n  return (\n    (_0x3e6a42[_0x57788a(0x215)] =\n      _0x3e6a42[_0x57788a(0x1fe)][\"text\"] ||\n      _0x3e6a42[\"msg\"][_0x57788a(0x19e)] ||\n      _0x3e6a42[_0x57788a(0x1c1)][_0x57788a(0x1c6)] ||\n      _0x3e6a42[\"msg\"][_0x57788a(0x209)] ||\n      _0x3e6a42[\"msg\"][_0x57788a(0x203)] ||\n      _0x3e6a42[_0x57788a(0x1fe)][_0x57788a(0x1e0)] ||\n      \"\"),\n    (_0x3e6a42[_0x57788a(0x1d4)] = (\n      _0x443444,\n      _0x3392a5 = _0x3e6a42[_0x57788a(0x1f2)],\n      _0x16c97a = {}\n    ) =>\n      Buffer[_0x57788a(0x1c7)](_0x443444)\n        ? _0x1ac937[_0x57788a(0x224)](\n            _0x3392a5,\n            _0x443444,\n            \"file\",\n            \"\",\n            _0x3e6a42,\n            { ..._0x16c97a }\n          )\n        : _0x1ac937[_0x57788a(0x1ee)](_0x3392a5, _0x443444, _0x3e6a42, {\n            ..._0x16c97a,\n          })),\n    (_0x3e6a42[\"copy\"] = () =>\n      exports[_0x57788a(0x1b9)](\n        _0x1ac937,\n        _0x533f62[\"fromObject\"](_0x533f62[_0x57788a(0x1e5)](_0x3e6a42))\n      )),\n    (_0x3e6a42[\"copyNForward\"] = (\n      _0x14651c = _0x3e6a42[\"chat\"],\n      _0x373a84 = ![],\n      _0xf90ae3 = {}\n    ) =>\n      _0x1ac937[_0x57788a(0x19c)](_0x14651c, _0x3e6a42, _0x373a84, _0xf90ae3)),\n    _0x3e6a42\n  );\n}\nfunction _0x5ea8() {\n  const _0x15aa9b = [\n    \"error\",\n    \"singleSelectReply\",\n    \"@broadcast\",\n    \"groupAcceptInvite\",\n    \"conversation\",\n    \"isBuffer\",\n    \"default\",\n    \"34541740TPadze\",\n    \"set\",\n    \"base64\",\n    \"isGroup\",\n    \"international\",\n    \"open\",\n    \"delete\",\n    \"viewOnceMessage\",\n    \"Connection\\x20closed,\\x20reconnecting....\",\n    \"decodeJid\",\n    \"Type\\x20/menu\\x20to\\x20see\\x20menu\",\n    \"reply\",\n    \"groupMetadata\",\n    \"Device\\x20Logged\\x20Out,\\x20Please\\x20Delete\\x20Folder\\x20Session\\x20yusril\\x20and\\x20Scan\\x20Again.\",\n    \"Connection\\x20Lost\\x20from\\x20Server,\\x20reconnecting...\",\n    \"cMod\",\n    \"Yesbhautik\",\n    \"contacts.update\",\n    \"cache\",\n    \"startsWith\",\n    \"2.1.0\",\n    \"3355227jcppqF\",\n    \"getNumber\",\n    \"title\",\n    \"916353586391\",\n    \"keys\",\n    \"split\",\n    \"includes\",\n    \"toObject\",\n    \"listResponseMessage\",\n    \"chalk\",\n    \"green\",\n    \"isBaileys\",\n    \"yellow\",\n    \"alloc\",\n    \"WhatsApp\",\n    \"figlet\",\n    \"sendText\",\n    \"string\",\n    \"key\",\n    \"keyword\",\n    \"chat\",\n    \"badSession\",\n    \"buttonsResponseMessage\",\n    \"@s.whatsapp.net\",\n    \"getName\",\n    \"public\",\n    \"subject\",\n    \"sender\",\n    \"serializeM\",\n    \"close\",\n    \"3kSsfMy\",\n    \"url\",\n    \"msg\",\n    \"redBright\",\n    \"quoted\",\n    \"64bmSpGg\",\n    \"verifiedName\",\n    \"selectedDisplayText\",\n    \"connectionClosed\",\n    \"https://rzp.io/l/Whatsapp-Ai-BOT\",\n    \"connectionReplaced\",\n    \"output\",\n    \"catch\",\n    \"contentText\",\n    \"productMessage\",\n    \"from\",\n    \"WebMessageInfo\",\n    \"user\",\n    \"silent\",\n    \"0@s.whatsapp.net\",\n    \"exit\",\n    \"Bot\\x20success\\x20conneted\\x20to\\x20server\",\n    \"store\",\n    \"@whiskeysockets/baileys\",\n    \"lodash\",\n    \"text\",\n    \"remoteJid\",\n    \"participant\",\n    \"Bot\\x20started!\\x0a\\x0aSupport\\x20WhatsApp-Ai-BOT\\x20Project\\x20and\\x20in\\x20return,\\x20get\\x20exclusive\\x20access\\x20to\\x20PRIME\\x20version.\\x0a\",\n    \"server\",\n    \"status\",\n    \"Support\\x20WhatsApp-Ai-BOT\\x20Project\\x20and\\x20in\\x20return,\\x20get\\x20exclusive\\x20access\\x20to\\x20PRIME\\x20version.\\x20https://rzp.io/l/Whatsapp-Ai-BOT\",\n    \"unwatchFile\",\n    \"reason:\",\n    \"6245705KkzZQZ\",\n    \"download\",\n    \"mentionedJid\",\n    \"axios\",\n    \"Standard\",\n    \"Whatsapp-Ai-Bot\\x20-\\x20YesbhautikX\",\n    \"sendMedia\",\n    \"watchFile\",\n    \"3605YpVTNx\",\n    \"@g.us\",\n    \"session\",\n    \"utf-8\",\n    \"arraybuffer\",\n    \"downloadMediaMessage\",\n    \"test\",\n    \"328242qlpMOr\",\n    \"body\",\n    \"copyNForward\",\n    \"Caught\\x20exception:\\x20\",\n    \"caption\",\n    \"notify\",\n    \"fakeObj\",\n    \"quotedMessage\",\n    \"fromMe\",\n    \"Restart\\x20Required,\\x20Restarting...\",\n    \"Something\\x20went\\x20wrong\",\n    \"bind\",\n    \"withoutContact\",\n    \"length\",\n    \"join\",\n    \"getQuotedObj\",\n    \"child\",\n    \"mtype\",\n    \"getQuotedMessage\",\n    \"log\",\n    \"sendMessage\",\n    \"fromObject\",\n    \"contextInfo\",\n    \"ephemeralMessage\",\n    \"existsSync\",\n    \"14154CaIsid\",\n    \"timedOut\",\n    \"1328283VHDVAQ\",\n    \"Unhandled\\x20Rejection\\x20at:\",\n    \"loadMessage\",\n    \"name\",\n    \"smsg\",\n    \"restartRequired\",\n    \"contacts\",\n    \"DoV9wBztYVJ2aMAJ5rzrsO\",\n    \"selectedRowId\",\n    \"stanzaId\",\n    \"BAE5\",\n    \"2387576tuOszu\",\n    \"message\",\n  ];\n  _0x5ea8 = function () {\n    return _0x15aa9b;\n  };\n  return _0x5ea8();\n}\nasync function startHisoka() {\n  const _0x5cdae0 = _0x4003d6,\n    { state: _0x889194, saveCreds: _0x6f4dc8 } = await useMultiFileAuthState(\n      \"./\" + (sessionName ? sessionName : _0x5cdae0(0x195))\n    ),\n    { version: _0x33d4eb, isLatest: _0x327f92 } =\n      await fetchLatestWaWebVersion()[_0x5cdae0(0x208)](() =>\n        fetchLatestBaileysVersion()\n      );\n  console[_0x5cdae0(0x1ad)](\n    \"using\\x20WA\\x20v\" +\n      _0x33d4eb[_0x5cdae0(0x1a8)](\".\") +\n      \",\\x20isLatest:\\x20\" +\n      _0x327f92\n  ),\n    console[_0x5cdae0(0x1ad)](\n      color(\n        figlet[\"textSync\"](_0x5cdae0(0x1d9), {\n          font: _0x5cdae0(0x222),\n          horizontalLayout: _0x5cdae0(0x1c8),\n          vertivalLayout: _0x5cdae0(0x1c8),\n          whitespaceBreak: ![],\n        }),\n        _0x5cdae0(0x1e8)\n      )\n    );\n  const _0x17b6e8 = yesbhautikaiConnect({\n    logger: pino({ level: _0x5cdae0(0x20e) }),\n    printQRInTerminal: !![],\n    browser: [_0x5cdae0(0x223), \"Browser\", _0x5cdae0(0x1dd)],\n    auth: _0x889194,\n  });\n  store[_0x5cdae0(0x1a5)](_0x17b6e8[\"ev\"]),\n    _0x17b6e8[\"ev\"][\"on\"](\"messages.upsert\", async (_0x8cd59c) => {\n      const _0x4f3d8d = _0x5cdae0;\n      try {\n        mek = _0x8cd59c[\"messages\"][0x0];\n        if (!mek[_0x4f3d8d(0x1c1)]) return;\n        mek[_0x4f3d8d(0x1c1)] =\n          Object[_0x4f3d8d(0x1e2)](mek[_0x4f3d8d(0x1c1)])[0x0] ===\n          _0x4f3d8d(0x1b1)\n            ? mek[_0x4f3d8d(0x1c1)][_0x4f3d8d(0x1b1)][_0x4f3d8d(0x1c1)]\n            : mek[_0x4f3d8d(0x1c1)];\n        if (\n          mek[_0x4f3d8d(0x1f0)] &&\n          mek[_0x4f3d8d(0x1f0)][_0x4f3d8d(0x216)] === \"status@broadcast\"\n        )\n          return;\n        if (\n          !_0x17b6e8[_0x4f3d8d(0x1f7)] &&\n          !mek[_0x4f3d8d(0x1f0)][_0x4f3d8d(0x1a2)] &&\n          _0x8cd59c[\"type\"] === _0x4f3d8d(0x19f)\n        )\n          return;\n        if (\n          mek[\"key\"][\"id\"][_0x4f3d8d(0x1dc)](\"BAE5\") &&\n          mek[\"key\"][\"id\"][_0x4f3d8d(0x1a7)] === 0x10\n        )\n          return;\n        (m = smsg(_0x17b6e8, mek, store)),\n          require(\"./yesbhautikai\")(_0x17b6e8, m, _0x8cd59c, store);\n      } catch (_0xc1f942) {\n        console[_0x4f3d8d(0x1ad)](_0xc1f942);\n      }\n    });\n  const _0x114dee = new Map();\n  process[\"on\"](\"unhandledRejection\", (_0x1e2d7a, _0x571d5e) => {\n    const _0x1dadb5 = _0x5cdae0;\n    _0x114dee[_0x1dadb5(0x1ca)](_0x571d5e, _0x1e2d7a),\n      console[_0x1dadb5(0x1ad)](\n        _0x1dadb5(0x1b6),\n        _0x571d5e,\n        _0x1dadb5(0x21d),\n        _0x1e2d7a\n      );\n  }),\n    process[\"on\"](\"rejectionHandled\", (_0x58f15b) => {\n      const _0xcdbee9 = _0x5cdae0;\n      _0x114dee[_0xcdbee9(0x1cf)](_0x58f15b);\n    }),\n    process[\"on\"](_0x5cdae0(0x1a4), function (_0x5e1745) {\n      const _0x2e6542 = _0x5cdae0;\n      console[_0x2e6542(0x1ad)](_0x2e6542(0x19d), _0x5e1745);\n    }),\n    (_0x17b6e8[_0x5cdae0(0x1d2)] = (_0xb8669f) => {\n      const _0x46fffe = _0x5cdae0;\n      if (!_0xb8669f) return _0xb8669f;\n      if (/:\\d+@/gi[_0x46fffe(0x199)](_0xb8669f)) {\n        let _0x23f159 = jidDecode(_0xb8669f) || {};\n        return (\n          (_0x23f159[_0x46fffe(0x20d)] &&\n            _0x23f159[\"server\"] &&\n            _0x23f159[_0x46fffe(0x20d)] + \"@\" + _0x23f159[_0x46fffe(0x219)]) ||\n          _0xb8669f\n        );\n      } else return _0xb8669f;\n    }),\n    _0x17b6e8[\"ev\"][\"on\"](_0x5cdae0(0x1da), (_0x537d9e) => {\n      const _0x51ec0e = _0x5cdae0;\n      for (let _0x1e6608 of _0x537d9e) {\n        let _0x18618c = _0x17b6e8[_0x51ec0e(0x1d2)](_0x1e6608[\"id\"]);\n        if (store && store[_0x51ec0e(0x1bb)])\n          store[\"contacts\"][_0x18618c] = {\n            id: _0x18618c,\n            name: _0x1e6608[_0x51ec0e(0x19f)],\n          };\n      }\n    }),\n    (_0x17b6e8[_0x5cdae0(0x1f6)] = (_0x307648, _0x3b5c82 = ![]) => {\n      const _0x5a6c4f = _0x5cdae0;\n      (id = _0x17b6e8[_0x5a6c4f(0x1d2)](_0x307648)),\n        (_0x3b5c82 = _0x17b6e8[_0x5a6c4f(0x1a6)] || _0x3b5c82);\n      let _0x3aadd9;\n      if (id[\"endsWith\"](_0x5a6c4f(0x194)))\n        return new Promise(async (_0x29172e) => {\n          const _0x384e02 = _0x5a6c4f;\n          _0x3aadd9 = store[_0x384e02(0x1bb)][id] || {};\n          if (!(_0x3aadd9[_0x384e02(0x1b8)] || _0x3aadd9[_0x384e02(0x1f8)]))\n            _0x3aadd9 = _0x17b6e8[_0x384e02(0x1d5)](id) || {};\n          _0x29172e(\n            _0x3aadd9[_0x384e02(0x1b8)] ||\n              _0x3aadd9[_0x384e02(0x1f8)] ||\n              PhoneNumber(\"+\" + id[\"replace\"](_0x384e02(0x1f5), \"\"))[\n                _0x384e02(0x1df)\n              ](_0x384e02(0x1cd))\n          );\n        });\n      else\n        _0x3aadd9 =\n          id === _0x5a6c4f(0x20f)\n            ? { id: id, name: _0x5a6c4f(0x1ec) }\n            : id ===\n              _0x17b6e8[_0x5a6c4f(0x1d2)](_0x17b6e8[_0x5a6c4f(0x20d)][\"id\"])\n            ? _0x17b6e8[_0x5a6c4f(0x20d)]\n            : store[\"contacts\"][id] || {};\n      return (\n        (_0x3b5c82 ? \"\" : _0x3aadd9[\"name\"]) ||\n        _0x3aadd9[\"subject\"] ||\n        _0x3aadd9[_0x5a6c4f(0x202)] ||\n        PhoneNumber(\"+\" + _0x307648[\"replace\"](_0x5a6c4f(0x1f5), \"\"))[\n          _0x5a6c4f(0x1df)\n        ](_0x5a6c4f(0x1cd))\n      );\n    }),\n    (_0x17b6e8[\"setStatus\"] = (_0xf621e5) => {\n      const _0x310548 = _0x5cdae0;\n      return (\n        _0x17b6e8[\"query\"]({\n          tag: \"iq\",\n          attrs: {\n            to: _0x310548(0x1f5),\n            type: _0x310548(0x1ca),\n            xmlns: _0x310548(0x21a),\n          },\n          content: [\n            {\n              tag: _0x310548(0x21a),\n              attrs: {},\n              content: Buffer[_0x310548(0x20b)](_0xf621e5, _0x310548(0x196)),\n            },\n          ],\n        }),\n        _0xf621e5\n      );\n    }),\n    (_0x17b6e8[_0x5cdae0(0x1f7)] = !![]),\n    (_0x17b6e8[_0x5cdae0(0x1fa)] = (_0x537a00) =>\n      smsg(_0x17b6e8, _0x537a00, store)),\n    _0x17b6e8[\"ev\"][\"on\"](\"connection.update\", async (_0x3627ed) => {\n      const _0xd26331 = _0x5cdae0,\n        { connection: _0x966e83, lastDisconnect: _0x1753f2 } = _0x3627ed;\n      if (_0x966e83 === _0xd26331(0x1fb)) {\n        let _0x15d475 = new Boom(_0x1753f2?.[_0xd26331(0x1c2)])?.[\n          _0xd26331(0x207)\n        ][\"statusCode\"];\n        if (_0x15d475 === DisconnectReason[_0xd26331(0x1f3)])\n          console[_0xd26331(0x1ad)](\n            \"Bad\\x20Session\\x20File,\\x20Please\\x20Delete\\x20Session\\x20and\\x20Scan\\x20Again\"\n          ),\n            process[_0xd26331(0x210)]();\n        else {\n          if (_0x15d475 === DisconnectReason[_0xd26331(0x204)])\n            console[_0xd26331(0x1ad)](_0xd26331(0x1d1)), startHisoka();\n          else {\n            if (_0x15d475 === DisconnectReason[\"connectionLost\"])\n              console[_0xd26331(0x1ad)](_0xd26331(0x1d7)), startHisoka();\n            else {\n              if (_0x15d475 === DisconnectReason[_0xd26331(0x206)])\n                console[\"log\"](\n                  \"Connection\\x20Replaced,\\x20Another\\x20New\\x20Session\\x20Opened,\\x20Please\\x20Restart\\x20Bot\"\n                ),\n                  process[\"exit\"]();\n              else {\n                if (_0x15d475 === DisconnectReason[\"loggedOut\"])\n                  console[_0xd26331(0x1ad)](_0xd26331(0x1d6)),\n                    process[\"exit\"]();\n                else {\n                  if (_0x15d475 === DisconnectReason[_0xd26331(0x1ba)])\n                    console[\"log\"](_0xd26331(0x1a3)), startHisoka();\n                  else\n                    _0x15d475 === DisconnectReason[_0xd26331(0x1b4)]\n                      ? (console[_0xd26331(0x1ad)](\n                          \"Connection\\x20TimedOut,\\x20Reconnecting...\"\n                        ),\n                        startHisoka())\n                      : (console[_0xd26331(0x1ad)](\n                          \"Unknown\\x20DisconnectReason:\\x20\" +\n                            _0x15d475 +\n                            \"|\" +\n                            _0x966e83\n                        ),\n                        startHisoka());\n                }\n              }\n            }\n          }\n        }\n      } else {\n        if (_0x966e83 === _0xd26331(0x1ce)) {\n          console[\"log\"](color(_0xd26331(0x211), \"green\")),\n            console[\"log\"](color(_0xd26331(0x21b), _0xd26331(0x1ea))),\n            console[_0xd26331(0x1ad)](color(_0xd26331(0x1d3))),\n            _0x17b6e8[_0xd26331(0x1ae)](owner + _0xd26331(0x1f5), {\n              text: _0xd26331(0x218) + donet,\n            });\n          const _0x5ee741 = _0xd26331(0x1bc);\n          _0x17b6e8[_0xd26331(0x1c5)](_0x5ee741)\n            [\"then\"]((_0x4e6a40) =>\n              console[_0xd26331(0x1ad)](\n                \"Joined\\x20the\\x20group\\x20with\\x20response:\\x20\" + _0x4e6a40\n              )\n            )\n            [\"catch\"]((_0x192ac7) =>\n              console[_0xd26331(0x1c2)](\n                \"Failed\\x20to\\x20join\\x20the\\x20group:\\x20\" + _0x192ac7\n              )\n            );\n        }\n      }\n    }),\n    _0x17b6e8[\"ev\"][\"on\"](\"creds.update\", _0x6f4dc8);\n  const _0x5853c3 = async (_0x3b91a7, _0x16ef30) => {\n    const _0xdcbc86 = _0x5cdae0;\n    try {\n      _0x16ef30 ? _0x16ef30 : {};\n      const _0x52bbdb = await axios({\n        method: \"get\",\n        url: _0x3b91a7,\n        headers: { DNT: 0x1, \"Upgrade-Insecure-Request\": 0x1 },\n        ..._0x16ef30,\n        responseType: _0xdcbc86(0x197),\n      });\n      return _0x52bbdb[\"data\"];\n    } catch (_0x1681ed) {\n      return _0x1681ed;\n    }\n  };\n  return (\n    (_0x17b6e8[\"sendImage\"] = async (\n      _0x99b4e3,\n      _0x5b9a08,\n      _0x3a5789 = \"\",\n      _0x39f640 = \"\",\n      _0x42a54c\n    ) => {\n      const _0x1506ea = _0x5cdae0;\n      let _0x9cdca4 = Buffer[_0x1506ea(0x1c7)](_0x5b9a08)\n        ? _0x5b9a08\n        : /^data:.*?\\/.*?;base64,/i[_0x1506ea(0x199)](_0x5b9a08)\n        ? Buffer[_0x1506ea(0x20b)](\n            _0x5b9a08[_0x1506ea(0x1e3)]`,`[0x1],\n            _0x1506ea(0x1cb)\n          )\n        : /^https?:\\/\\//[\"test\"](_0x5b9a08)\n        ? await await _0x5853c3(_0x5b9a08)\n        : fs[_0x1506ea(0x1b2)](_0x5b9a08)\n        ? fs[\"readFileSync\"](_0x5b9a08)\n        : Buffer[_0x1506ea(0x1eb)](0x0);\n      return await _0x17b6e8[_0x1506ea(0x1ae)](\n        _0x99b4e3,\n        { image: _0x9cdca4, caption: _0x3a5789, ..._0x42a54c },\n        { quoted: _0x39f640 }\n      );\n    }),\n    (_0x17b6e8[_0x5cdae0(0x1ee)] = (\n      _0x9bb3b3,\n      _0x1fbc8d,\n      _0xc0b7d2 = \"\",\n      _0x52813e\n    ) =>\n      _0x17b6e8[_0x5cdae0(0x1ae)](\n        _0x9bb3b3,\n        { text: _0x1fbc8d, ..._0x52813e },\n        { quoted: _0xc0b7d2 }\n      )),\n    (_0x17b6e8[_0x5cdae0(0x1d8)] = (\n      _0xca3d31,\n      _0x46ece5,\n      _0x4b8316 = \"\",\n      _0x2decd = _0x17b6e8[\"user\"][\"id\"],\n      _0x9e0cd = {}\n    ) => {\n      const _0x5d1184 = _0x5cdae0;\n      let _0x618bd3 = Object[_0x5d1184(0x1e2)](_0x46ece5[\"message\"])[0x0],\n        _0x16edc4 = _0x618bd3 === _0x5d1184(0x1b1);\n      _0x16edc4 &&\n        (_0x618bd3 = Object[_0x5d1184(0x1e2)](\n          _0x46ece5[_0x5d1184(0x1c1)][_0x5d1184(0x1b1)][_0x5d1184(0x1c1)]\n        )[0x0]);\n      let _0x14ece9 = _0x16edc4\n          ? _0x46ece5[\"message\"][\"ephemeralMessage\"][_0x5d1184(0x1c1)]\n          : _0x46ece5[_0x5d1184(0x1c1)],\n        _0x2e2707 = _0x14ece9[_0x618bd3];\n      if (typeof _0x2e2707 === _0x5d1184(0x1ef))\n        _0x14ece9[_0x618bd3] = _0x4b8316 || _0x2e2707;\n      else {\n        if (_0x2e2707[_0x5d1184(0x19e)])\n          _0x2e2707[_0x5d1184(0x19e)] =\n            _0x4b8316 || _0x2e2707[_0x5d1184(0x19e)];\n        else {\n          if (_0x2e2707[_0x5d1184(0x215)])\n            _0x2e2707[\"text\"] = _0x4b8316 || _0x2e2707[_0x5d1184(0x215)];\n        }\n      }\n      if (typeof _0x2e2707 !== _0x5d1184(0x1ef))\n        _0x14ece9[_0x618bd3] = { ..._0x2e2707, ..._0x9e0cd };\n      if (_0x46ece5[\"key\"][_0x5d1184(0x217)])\n        _0x2decd = _0x46ece5[_0x5d1184(0x1f0)][_0x5d1184(0x217)] =\n          _0x2decd || _0x46ece5[_0x5d1184(0x1f0)][_0x5d1184(0x217)];\n      else {\n        if (_0x46ece5[_0x5d1184(0x1f0)][\"participant\"])\n          _0x2decd = _0x46ece5[_0x5d1184(0x1f0)][_0x5d1184(0x217)] =\n            _0x2decd || _0x46ece5[_0x5d1184(0x1f0)][\"participant\"];\n      }\n      if (\n        _0x46ece5[\"key\"][_0x5d1184(0x216)][_0x5d1184(0x1e4)](\"@s.whatsapp.net\")\n      )\n        _0x2decd = _0x2decd || _0x46ece5[_0x5d1184(0x1f0)][_0x5d1184(0x216)];\n      else {\n        if (_0x46ece5[\"key\"][\"remoteJid\"][_0x5d1184(0x1e4)](_0x5d1184(0x1c4)))\n          _0x2decd = _0x2decd || _0x46ece5[_0x5d1184(0x1f0)][_0x5d1184(0x216)];\n      }\n      return (\n        (_0x46ece5[_0x5d1184(0x1f0)][_0x5d1184(0x216)] = _0xca3d31),\n        (_0x46ece5[_0x5d1184(0x1f0)][_0x5d1184(0x1a2)] =\n          _0x2decd === _0x17b6e8[_0x5d1184(0x20d)][\"id\"]),\n        proto[_0x5d1184(0x20c)][_0x5d1184(0x1af)](_0x46ece5)\n      );\n    }),\n    _0x17b6e8\n  );\n}\nstartHisoka();\nlet file = require[\"resolve\"](__filename);\nfs[_0x4003d6(0x192)](file, () => {\n  const _0x3f35c7 = _0x4003d6;\n  fs[_0x3f35c7(0x21c)](file),\n    console[_0x3f35c7(0x1ad)](\n      chalk[_0x3f35c7(0x1ff)](\"Update\\x20\" + __filename)\n    ),\n    delete require[_0x3f35c7(0x1db)][file],\n    require(file);\n});\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"Whatsapp-Ai-BOT\",\n  \"version\": \"2.1.0\",\n  \"description\": \"Whatsapp Ai Bot, developed BY Bhautik Bavadiya with YesbhautikX\",\n  \"main\": \"index.js\",\n  \"type\": \"commonjs\",\n  \"scripts\": {\n    \"start\": \"node index.js\"\n  },\n  \"keywords\": [\n    \"termux\",\n    \"Whatsapp-Ai-BOT\",\n    \"whatsapp-openai\",\n    \"whatsapp-openai\",\n    \"whatsapp-bot\",\n    \"whatsapp-baileys\",\n    \"baileys-md\",\n    \"bot-wa\",\n    \"bot-md\",\n    \"yesbhautik\",\n    \"whatsapp-multi-device\",\n    \"YesbhautikX\"\n  ],\n  \"base\": \"https://yesbhautik.co.in/\",\n  \"author\": \"YESBHAUTIK\",\n  \"license\": \"MIT\",\n  \"dependencies\": {\n    \"@hapi/boom\": \"^10.0.0\",\n    \"@whiskeysockets/baileys\": \"^6.6.0\",\n    \"awesome-phonenumber\": \"^2.64.0\",\n    \"axios\": \"^1.3.4\",\n    \"chalk\": \"^4.1.2\",\n    \"crypto\": \"^1.0.1\",\n    \"figlet\": \"^1.5.2\",\n    \"fs\": \"0.0.1-security\",\n    \"lodash\": \"^4.17.21\",\n    \"openai\": \"^4.20.1\",\n    \"pino\": \"^7.0.5\",\n    \"qrcode-terminal\": \"^0.12.0\",\n    \"util\": \"^0.12.4\"\n  },\n  \"directories\": {\n    \"lib\": \"lib\",\n    \"src\": \"src\"\n  },\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/yesbhautik/Whatsapp-Ai-BOT.git\"\n  },\n  \"bugs\": {\n    \"url\": \"https://github.com/yesbhautik/Whatsapp-Ai-BOT/issues\"\n  },\n  \"homepage\": \"https://github.com/yesbhautik/Whatsapp-Ai-BOT#readme\"\n}\n"
  },
  {
    "path": "yesbhautikai.js",
    "content": "const _0x39e3e6 = _0x2987;\n(function (_0x34eda4, _0x4ab326) {\n  const _0x4ef61a = _0x2987,\n    _0x5333ec = _0x34eda4();\n  while (!![]) {\n    try {\n      const _0x119b60 =\n        parseInt(_0x4ef61a(0x9d)) / 0x1 +\n        (-parseInt(_0x4ef61a(0x86)) / 0x2) *\n          (-parseInt(_0x4ef61a(0x9c)) / 0x3) +\n        -parseInt(_0x4ef61a(0x96)) / 0x4 +\n        (parseInt(_0x4ef61a(0x8f)) / 0x5) * (-parseInt(_0x4ef61a(0x9a)) / 0x6) +\n        (-parseInt(_0x4ef61a(0x7b)) / 0x7) *\n          (-parseInt(_0x4ef61a(0xc4)) / 0x8) +\n        -parseInt(_0x4ef61a(0xae)) / 0x9 +\n        (-parseInt(_0x4ef61a(0xba)) / 0xa) * (-parseInt(_0x4ef61a(0xb4)) / 0xb);\n      if (_0x119b60 === _0x4ab326) break;\n      else _0x5333ec[\"push\"](_0x5333ec[\"shift\"]());\n    } catch (_0x5de297) {\n      _0x5333ec[\"push\"](_0x5333ec[\"shift\"]());\n    }\n  }\n})(_0x4195, 0xce1ca);\nconst {\n    BufferJSON,\n    WA_DEFAULT_EPHEMERAL,\n    generateWAMessageFromContent,\n    proto,\n    generateWAMessageContent,\n    generateWAMessage,\n    prepareWAMessageMedia,\n    areJidsSameUser,\n    getContentType,\n  } = require(_0x39e3e6(0x94)),\n  fs = require(\"fs\"),\n  util = require(\"util\"),\n  chalk = require(_0x39e3e6(0xd1)),\n  OpenAI = require(\"openai\");\nlet setting = require(_0x39e3e6(0xc6));\nconst openai = new OpenAI({ apiKey: setting[_0x39e3e6(0xaa)] });\nmodule[_0x39e3e6(0xda)] = yesbhautikai = async (\n  _0x34e142,\n  _0x5cbb01,\n  _0x15882e\n) => {\n  const _0x56484c = _0x39e3e6;\n  try {\n    var _0x512345 =\n      _0x5cbb01[_0x56484c(0x81)] === _0x56484c(0x8c)\n        ? _0x5cbb01[\"message\"][_0x56484c(0x8c)]\n        : _0x5cbb01[_0x56484c(0x81)] == _0x56484c(0x7e)\n        ? _0x5cbb01[_0x56484c(0xcf)][_0x56484c(0x7e)][_0x56484c(0x99)]\n        : _0x5cbb01[_0x56484c(0x81)] == _0x56484c(0xa3)\n        ? _0x5cbb01[_0x56484c(0xcf)][\"videoMessage\"][_0x56484c(0x99)]\n        : _0x5cbb01[_0x56484c(0x81)] == _0x56484c(0xe1)\n        ? _0x5cbb01[_0x56484c(0xcf)][_0x56484c(0xe1)][_0x56484c(0xc0)]\n        : _0x5cbb01[\"mtype\"] == _0x56484c(0xab)\n        ? _0x5cbb01[_0x56484c(0xcf)][_0x56484c(0xab)][_0x56484c(0xca)]\n        : _0x5cbb01[_0x56484c(0x81)] == \"listResponseMessage\"\n        ? _0x5cbb01[_0x56484c(0xcf)][_0x56484c(0xce)][\"singleSelectReply\"][\n            _0x56484c(0xa9)\n          ]\n        : _0x5cbb01[_0x56484c(0x81)] == _0x56484c(0xd7)\n        ? _0x5cbb01[\"message\"][_0x56484c(0xd7)][\"selectedId\"]\n        : _0x5cbb01[_0x56484c(0x81)] === _0x56484c(0xc8)\n        ? _0x5cbb01[\"message\"][_0x56484c(0xab)]?.[\"selectedButtonId\"] ||\n          _0x5cbb01[\"message\"][_0x56484c(0xce)]?.[_0x56484c(0x9b)][\n            _0x56484c(0xa9)\n          ] ||\n          _0x5cbb01[\"text\"]\n        : \"\";\n    if (_0x5cbb01[\"mtype\"] === _0x56484c(0x7a)) return;\n    var _0x52ffca =\n        typeof _0x5cbb01[_0x56484c(0xc0)] == _0x56484c(0xa0)\n          ? _0x5cbb01[_0x56484c(0xc0)]\n          : \"\",\n      _0x51fe27 = /^[\\\\/!#.]/gi[\"test\"](_0x512345)\n        ? _0x512345[_0x56484c(0x8d)](/^[\\\\/!#.]/gi)\n        : \"/\";\n    const _0x4c9947 = _0x512345[_0x56484c(0xd6)](_0x51fe27),\n      _0x158081 = _0x512345[\"replace\"](_0x51fe27, \"\")\n        [_0x56484c(0xe5)]()\n        [\"split\"](/ +/)\n        [_0x56484c(0xb5)]()\n        [\"toLowerCase\"](),\n      _0x5b303f = _0x512345[_0x56484c(0xe5)]()\n        [_0x56484c(0xcb)](/ +/)\n        [_0x56484c(0x82)](0x1),\n      _0x208872 = _0x5cbb01[\"pushName\"] || \"No\\x20Name\",\n      _0x388b86 = await _0x34e142[_0x56484c(0xd2)](\n        _0x34e142[_0x56484c(0xd0)][\"id\"]\n      ),\n      _0x5654b1 = _0x5cbb01[_0x56484c(0xe3)] == _0x388b86 ? !![] : ![];\n    let _0x3e83e8 = (q = _0x5b303f[_0x56484c(0xbd)](\"\\x20\"));\n    const _0x114cc2 = _0x52ffca[\"trim\"]()[_0x56484c(0xd4)](\n        _0x52ffca[\"indexOf\"](\"\\x20\") + 0x1\n      ),\n      _0x1ad373 = _0x114cc2[_0x56484c(0xe5)]()[_0x56484c(0xd4)](\n        _0x114cc2[_0x56484c(0x91)](\"\\x20\") + 0x1\n      ),\n      _0x5ba7d8 = _0x5cbb01[\"chat\"],\n      _0x576d92 = _0x5cbb01[_0x56484c(0xbc)],\n      _0x2a4f69 = _0x5cbb01[_0x56484c(0xe3)],\n      _0x11c15a = _0x15882e[\"messages\"][0x0],\n      _0x3d805d = (_0x436c29, _0x23af12) => {\n        const _0x46407c = _0x56484c;\n        return !_0x23af12\n          ? chalk[_0x46407c(0xa1)](_0x436c29)\n          : chalk[_0x46407c(0xd5)](_0x23af12)(_0x436c29);\n      },\n      _0x331efc = _0x5cbb01[_0x56484c(0xdb)]\n        ? await _0x34e142[_0x56484c(0xbe)](_0x5cbb01[_0x56484c(0x98)])[\n            _0x56484c(0xa7)\n          ]((_0x524897) => {})\n        : \"\",\n      _0x5bdaeb = _0x5cbb01[_0x56484c(0xdb)] ? _0x331efc[_0x56484c(0x93)] : \"\";\n    let _0x1b1e36 =\n      _0x52ffca[\"length\"] > 0x1e\n        ? q[_0x56484c(0xd4)](0x0, 0x1e) + _0x56484c(0xd8)\n        : _0x52ffca;\n    if (_0x4c9947 && !_0x5cbb01[_0x56484c(0xdb)])\n      console[_0x56484c(0xad)](\n        chalk[_0x56484c(0x95)](chalk[_0x56484c(0xc1)](_0x56484c(0x8a))),\n        _0x3d805d(_0x1b1e36, _0x56484c(0x92)),\n        chalk[_0x56484c(0x7c)](\"From\"),\n        chalk[_0x56484c(0xa1)](_0x208872),\n        chalk[_0x56484c(0xe0)](\n          \"[\\x20\" +\n            _0x5cbb01[\"sender\"][_0x56484c(0x9e)](_0x56484c(0x9f), \"\") +\n            \"\\x20]\"\n        )\n      );\n    else\n      _0x4c9947 &&\n        _0x5cbb01[\"isGroup\"] &&\n        console[_0x56484c(0xad)](\n          chalk[\"black\"](chalk[_0x56484c(0xc1)](_0x56484c(0x8a))),\n          _0x3d805d(_0x1b1e36, \"turquoise\"),\n          chalk[_0x56484c(0x7c)](_0x56484c(0xb7)),\n          chalk[_0x56484c(0xa1)](_0x208872),\n          chalk[_0x56484c(0xe0)](\n            \"[\\x20\" +\n              _0x5cbb01[_0x56484c(0xe3)][_0x56484c(0x9e)](\n                \"@s.whatsapp.net\",\n                \"\"\n              ) +\n              \"\\x20]\"\n          ),\n          chalk[_0x56484c(0xb8)](\"IN\"),\n          chalk[_0x56484c(0xa1)](_0x5bdaeb)\n        );\n    if (_0x4c9947)\n      switch (_0x158081) {\n        case _0x56484c(0xdc):\n        case \"menu\":\n        case _0x56484c(0xd9):\n        case _0x56484c(0xa4):\n          _0x5cbb01[\"reply\"](\n            _0x56484c(0xbf) +\n              _0x51fe27 +\n              _0x56484c(0xd3) +\n              _0x51fe27 +\n              _0x56484c(0xa2) +\n              _0x51fe27 +\n              _0x56484c(0x83)\n          );\n          break;\n        case \"ai\":\n        case _0x56484c(0x8b):\n        case _0x56484c(0x80):\n        case \"ask\":\n          try {\n            if (setting[_0x56484c(0xaa)] === _0x56484c(0xa8))\n              return _0x576d92(_0x56484c(0x8e));\n            if (!_0x3e83e8)\n              return _0x576d92(\n                _0x56484c(0x7d) +\n                  _0x51fe27 +\n                  _0x158081 +\n                  \"\\x20What\\x20is\\x20a\\x20recession\"\n              );\n            const _0x9c56a8 = await openai[\"chat\"][_0x56484c(0xb9)][\n              _0x56484c(0x88)\n            ]({\n              messages: [{ role: _0x56484c(0xd0), content: q }],\n              model: _0x56484c(0xc5),\n            });\n            await _0x5cbb01[_0x56484c(0xbc)](\n              _0x9c56a8[_0x56484c(0xb6)][0x0][_0x56484c(0xcf)][_0x56484c(0x97)]\n            );\n          } catch (_0x510326) {\n            _0x510326[_0x56484c(0xde)]\n              ? (console[_0x56484c(0xad)](\n                  _0x510326[_0x56484c(0xde)][_0x56484c(0xc7)]\n                ),\n                console[_0x56484c(0xad)](_0x510326[_0x56484c(0xde)][\"data\"]))\n              : (console[_0x56484c(0xad)](_0x510326),\n                _0x5cbb01[_0x56484c(0xbc)](\n                  _0x56484c(0x85) + _0x510326[_0x56484c(0xcf)]\n                ));\n          }\n          break;\n        case _0x56484c(0x7f):\n        case _0x56484c(0x89):\n        case _0x56484c(0xe4):\n        case _0x56484c(0xb3):\n        case \"dall-e\":\n        case _0x56484c(0xbb):\n          try {\n            if (setting[_0x56484c(0xaa)] === _0x56484c(0xa8))\n              return _0x576d92(_0x56484c(0xdf));\n            if (!_0x3e83e8)\n              return _0x576d92(\n                \"Mcreate\\x20an\\x20image\\x20from\\x20AI.\\x0a\\x0aExample:\\x0a\" +\n                  _0x51fe27 +\n                  _0x158081 +\n                  _0x56484c(0xcd)\n              );\n            const _0x11cf44 = await openai[_0x56484c(0xb3)][_0x56484c(0x87)]({\n              model: _0x56484c(0x84),\n              prompt: q,\n              n: 0x1,\n              size: \"512x512\",\n            });\n            _0x34e142[\"sendImage\"](\n              _0x5ba7d8,\n              _0x11cf44[_0x56484c(0xc9)][0x0][\"url\"],\n              _0x3e83e8,\n              _0x11c15a\n            );\n          } catch (_0x103010) {\n            _0x103010[\"response\"]\n              ? (console[\"log\"](_0x103010[_0x56484c(0xde)][_0x56484c(0xc7)]),\n                console[_0x56484c(0xad)](\n                  _0x103010[_0x56484c(0xde)][_0x56484c(0xc9)]\n                ),\n                console[_0x56484c(0xad)](\n                  _0x103010[_0x56484c(0xde)][_0x56484c(0xc7)] +\n                    \"\\x0a\\x0a\" +\n                    _0x103010[_0x56484c(0xde)][_0x56484c(0xc9)]\n                ))\n              : (console[_0x56484c(0xad)](_0x103010),\n                _0x5cbb01[\"reply\"](\n                  _0x56484c(0x85) + _0x103010[_0x56484c(0xcf)]\n                ));\n          }\n          break;\n        case \"sc\":\n        case _0x56484c(0xb0):\n        case _0x56484c(0xac):\n          _0x5cbb01[_0x56484c(0xbc)](_0x56484c(0xa6));\n          break;\n        default: {\n          if (_0x4c9947 && _0x52ffca[_0x56484c(0xdd)]() != undefined) {\n            if (_0x5cbb01[_0x56484c(0x98)][\"endsWith\"](_0x56484c(0xcc))) return;\n            if (_0x5cbb01[\"isBaileys\"]) return;\n            if (!_0x52ffca[_0x56484c(0xdd)]()) return;\n            if (_0x1b1e36 || (_0x4c9947 && !_0x5cbb01[_0x56484c(0xdb)]))\n              console[_0x56484c(0xad)](\n                chalk[\"black\"](chalk[_0x56484c(0xb1)](_0x56484c(0xa5))),\n                _0x3d805d(_0x56484c(0xc3), _0x56484c(0x92)),\n                _0x3d805d(\"\" + _0x51fe27 + _0x158081, _0x56484c(0x92)),\n                _0x3d805d(_0x56484c(0xe2), \"turquoise\")\n              );\n            else\n              (_0x1b1e36 || (_0x4c9947 && _0x5cbb01[_0x56484c(0xdb)])) &&\n                console[\"log\"](\n                  chalk[_0x56484c(0x95)](chalk[\"bgRed\"](_0x56484c(0xa5))),\n                  _0x3d805d(_0x56484c(0xc3), \"turquoise\"),\n                  _0x3d805d(\"\" + _0x51fe27 + _0x158081, _0x56484c(0x92)),\n                  _0x3d805d(_0x56484c(0xe2), _0x56484c(0x92))\n                );\n          }\n        }\n      }\n  } catch (_0x26c12e) {\n    _0x5cbb01[_0x56484c(0xbc)](util[\"format\"](_0x26c12e));\n  }\n};\nfunction _0x2987(_0x1b212f, _0x1b4209) {\n  const _0x4195ae = _0x4195();\n  return (\n    (_0x2987 = function (_0x2987da, _0x112b9d) {\n      _0x2987da = _0x2987da - 0x7a;\n      let _0x5b6948 = _0x4195ae[_0x2987da];\n      return _0x5b6948;\n    }),\n    _0x2987(_0x1b212f, _0x1b4209)\n  );\n}\nlet file = require[\"resolve\"](__filename);\nfunction _0x4195() {\n  const _0x56340b = [\n    \"images\",\n    \"2585eThCnN\",\n    \"shift\",\n    \"choices\",\n    \"From\",\n    \"blueBright\",\n    \"completions\",\n    \"44860fyTTHC\",\n    \"dalle\",\n    \"reply\",\n    \"join\",\n    \"groupMetadata\",\n    \"*Whatsapp\\x20Ai\\x20Bot*\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a*(ChatGPT)*\\x0aCmd:\\x20\",\n    \"text\",\n    \"bgWhite\",\n    \"unwatchFile\",\n    \"command\",\n    \"8BUyGEz\",\n    \"gpt-3.5-turbo\",\n    \"./key.json\",\n    \"status\",\n    \"messageContextInfo\",\n    \"data\",\n    \"selectedButtonId\",\n    \"split\",\n    \"broadcast\",\n    \"\\x20Wooden\\x20house\\x20on\\x20snow\\x20mountain\",\n    \"listResponseMessage\",\n    \"message\",\n    \"user\",\n    \"chalk\",\n    \"decodeJid\",\n    \"ai\\x20\\x0aAsk\\x20anything\\x20to\\x20AI.\\x0a\\x0a*(DALL-E)*\\x0aCmd:\\x20\",\n    \"substring\",\n    \"keyword\",\n    \"startsWith\",\n    \"templateButtonReplyMessage\",\n    \"...\",\n    \"start\",\n    \"exports\",\n    \"isGroup\",\n    \"help\",\n    \"toLowerCase\",\n    \"response\",\n    \"Apikey\\x20has\\x20not\\x20been\\x20filled\\x0a\\x0aPlease\\x20fill\\x20in\\x20the\\x20apikey\\x20first\\x20in\\x20the\\x20key.json\\x20file\\x0a\\x0aApikey\\x20can\\x20be\\x20made\\x20on\\x20the\\x20website:\\x20https://beta.openai.com/account/api-keys\",\n    \"yellow\",\n    \"extendedTextMessage\",\n    \"not\\x20available\",\n    \"sender\",\n    \"image\",\n    \"trim\",\n    \"viewOnceMessageV2\",\n    \"10797493pzkLpt\",\n    \"magenta\",\n    \"Chat\\x20with\\x20AI.\\x0a\\x0aExample:\\x0a\",\n    \"imageMessage\",\n    \"img\",\n    \"chatgpt\",\n    \"mtype\",\n    \"slice\",\n    \"sc\\x0aDisplays\\x20the\\x20source\\x20code\\x20of\\x20the\\x20bot\\x20used\",\n    \"dall-e-2\",\n    \"Sorry,\\x20there\\x20seems\\x20to\\x20be\\x20an\\x20error\\x20:\",\n    \"2MxaoUW\",\n    \"generate\",\n    \"create\",\n    \"ai-img\",\n    \"[\\x20LOGS\\x20]\",\n    \"openai\",\n    \"conversation\",\n    \"match\",\n    \"Apikey\\x20has\\x20not\\x20been\\x20filled\\x0a\\x0aPlease\\x20fill\\x20in\\x20the\\x20apikey\\x20first\\x20in\\x20the\\x20key.json\\x20file\\x0a\\x0aThe\\x20api\\x20key\\x20can\\x20be\\x20generated\\x20on\\x20the\\x20website:\\x20https://beta.openai.com/account/api-keys\",\n    \"7264615lEOnQU\",\n    \"watchFile\",\n    \"indexOf\",\n    \"turquoise\",\n    \"subject\",\n    \"@whiskeysockets/baileys\",\n    \"black\",\n    \"3001060tHBjGT\",\n    \"content\",\n    \"chat\",\n    \"caption\",\n    \"6oxPgxi\",\n    \"singleSelectReply\",\n    \"3242082SXqfbA\",\n    \"48932wGUKuB\",\n    \"replace\",\n    \"@s.whatsapp.net\",\n    \"string\",\n    \"green\",\n    \"img\\x0aCreate\\x20an\\x20image\\x20from\\x20text\\x0a\\x0a*(Source\\x20Code\\x20Bot)*\\x0aCmd:\\x20\",\n    \"videoMessage\",\n    \"info\",\n    \"[\\x20ERROR\\x20]\",\n    \"This\\x20bot\\x20uses\\x20a\\x20script\\x20from\\x20https://github.com/yesbhautik/Whatsapp-Ai-BOT\",\n    \"catch\",\n    \"ISI_APIKEY_OPENAI_DISINI\",\n    \"selectedRowId\",\n    \"keyopenai\",\n    \"buttonsResponseMessage\",\n    \"scbot\",\n    \"log\",\n    \"6110217QDuKKY\",\n    \"redBright\",\n    \"script\",\n    \"bgRed\",\n    \"cache\",\n  ];\n  _0x4195 = function () {\n    return _0x56340b;\n  };\n  return _0x4195();\n}\nfs[_0x39e3e6(0x90)](file, () => {\n  const _0x1476e2 = _0x39e3e6;\n  fs[_0x1476e2(0xc2)](file),\n    console[_0x1476e2(0xad)](chalk[_0x1476e2(0xaf)](\"Update\\x20\" + __filename)),\n    delete require[_0x1476e2(0xb2)][file],\n    require(file);\n});\n"
  }
]