{"id":21474291,"url":"https://github.com/codingtuto/what-bot","last_synced_at":"2025-10-14T18:04:57.618Z","repository":{"id":165144235,"uuid":"586339583","full_name":"codingtuto/What-bot","owner":"codingtuto","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-07T19:31:05.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-14T18:04:52.526Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codingtuto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-07T19:30:56.000Z","updated_at":"2023-01-07T19:31:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"e271c9af-d2d4-4b54-81c0-9ddd0973435b","html_url":"https://github.com/codingtuto/What-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codingtuto/What-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingtuto%2FWhat-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingtuto%2FWhat-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingtuto%2FWhat-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingtuto%2FWhat-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codingtuto","download_url":"https://codeload.github.com/codingtuto/What-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingtuto%2FWhat-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020319,"owners_count":26086864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-23T10:21:39.146Z","updated_at":"2025-10-14T18:04:57.602Z","avatar_url":"https://github.com/codingtuto.png","language":"JavaScript","readme":"## About The Project\n\nThis is a basic chat bot for WhatsApp which uses the OpenAI API (GPT-3). It is written in JavaScript using Node.js.\n\n\n### Prerequisites\n\n* npm\n```sh\nnpm install npm@latest -g\n```\n* API keys from OpenAI at https://openai.com.\n\n\n### Installation\n\n1. Clone the repo\n```sh\ngit clone https://github.com/theshanergy/whatbot.git\n```\n2. Install NPM packages\n```sh\nnpm install\n```\n3. Create an .env file containing your OpenAI secret API key as follows:\n```sh\nOPENAI_SECRET_KEY=\"\u003cSecret key\u003e\"\n```\n4. Optionally set a default prompt in your .env file to give your bot a different personality:\n```sh\nDEFAULT_PROMPT=\"\u003cYour custom prompt here\u003e\"\n```\n\n\n## Example Prompts\n\nPrompts should be written in the first person and are used to define your bots personality and ego. ie:\n\n\u003e My name is Albert Einstein. I am a theoretical physicist who developed the theory of relativity.\n\nThe more detail you offer in your prompt, the better your responses will be.\n\n\n## Usage\n\n1. Run the bot:\n```sh\nnpm run start\n```\n2. Open WhatsApp on your phone, select 'WhatsApp Web' from the settings menu, then scan the provided QR code.\n3. Choose from the list of recent chats which you would like to activate the bot for. Use space key to select.\n4. Sit back and watch the bot respond automatically to incoming messages from your selected contacts.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingtuto%2Fwhat-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingtuto%2Fwhat-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingtuto%2Fwhat-bot/lists"}