{"id":20671437,"url":"https://github.com/fajarbc/wa-bot","last_synced_at":"2026-05-15T08:03:38.254Z","repository":{"id":115653406,"uuid":"546802979","full_name":"fajarbc/wa-bot","owner":"fajarbc","description":"WhatsApp bot","archived":false,"fork":false,"pushed_at":"2022-10-11T00:48:51.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T17:29:50.119Z","etag":null,"topics":["bot","hacktoberfest","whatsapp"],"latest_commit_sha":null,"homepage":"","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/fajarbc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2022-10-06T17:10:29.000Z","updated_at":"2022-10-10T18:31:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"c468754a-51d5-4328-98cf-5037a5e79d68","html_url":"https://github.com/fajarbc/wa-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fajarbc/wa-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajarbc%2Fwa-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajarbc%2Fwa-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajarbc%2Fwa-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajarbc%2Fwa-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fajarbc","download_url":"https://codeload.github.com/fajarbc/wa-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajarbc%2Fwa-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33058965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"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":["bot","hacktoberfest","whatsapp"],"created_at":"2024-11-16T20:27:15.186Z","updated_at":"2026-05-15T08:03:38.225Z","avatar_url":"https://github.com/fajarbc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wa-bot\n\nWhatsApp bot using [whatsapp-web.js](https://github.com/pedroslopez/whatsapp-web.js).\n\nUsing MongoDB and mongoose to store list message and reply\n\n# Setup\n1. Install Dependecies\n    ```\n    npm install\n    ```\n2. Database seeds. Example of `autoreplies` collection to mention the message sender. Here `@{mention}` will be replaced by `@{contact.user.id}`\n    ```json\n    {\n    \"message\": \"!hi\",\n    \"reply\": \"hello @{mention}\",\n    \"created_at\": {\n        \"$date\": {\n        \"$numberLong\": \"1665014400000\",\n        },\n    },\n    \"updated_at\": {\n        \"$date\": {\n        \"$numberLong\": \"1665070380000\",\n        },\n    },\n    }\n    ```\n\n# Running\n1. Run the app\n    ```\n    npm start\n    ```\n2. Scan QR Code shown in terminal\n\n# Testing\n```\nnpm test\n```\n\n# Run docker compose in detached mode\n```\ndocker-compose up -d\n```\n# Manage database\nwhere mongodb_container is the container name\n```\nsudo docker exec -it mongodb_container bash\n```\nEnter this to switch to your database\n```\nuse datbaseName\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffajarbc%2Fwa-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffajarbc%2Fwa-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffajarbc%2Fwa-bot/lists"}