{"id":22387660,"url":"https://github.com/hendraaagil/gilbot-whatsapp","last_synced_at":"2026-05-05T12:33:52.087Z","repository":{"id":265017481,"uuid":"638215424","full_name":"hendraaagil/gilbot-whatsapp","owner":"hendraaagil","description":"WhatsApp bot (https://gilbot.hendraaagil.dev/) source code.","archived":false,"fork":false,"pushed_at":"2024-11-02T15:01:54.000Z","size":766,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-10T04:22:21.360Z","etag":null,"topics":["bot","nodejs","whatsapp-bot","whatsapp-web","whatsapp-web-js"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hendraaagil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"LICENSE","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},"funding":{"github":["hendraaagil"],"ko_fi":"hendraaagil","custom":["https://saweria.co/hendraaagil"]}},"created_at":"2023-05-09T10:19:13.000Z","updated_at":"2024-11-02T15:02:12.000Z","dependencies_parsed_at":"2024-11-27T10:17:22.365Z","dependency_job_id":null,"html_url":"https://github.com/hendraaagil/gilbot-whatsapp","commit_stats":null,"previous_names":["hendraaagil/gilbot-whatsapp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hendraaagil/gilbot-whatsapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendraaagil%2Fgilbot-whatsapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendraaagil%2Fgilbot-whatsapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendraaagil%2Fgilbot-whatsapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendraaagil%2Fgilbot-whatsapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hendraaagil","download_url":"https://codeload.github.com/hendraaagil/gilbot-whatsapp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendraaagil%2Fgilbot-whatsapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32649596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","nodejs","whatsapp-bot","whatsapp-web","whatsapp-web-js"],"created_at":"2024-12-05T02:10:21.257Z","updated_at":"2026-05-05T12:33:52.043Z","avatar_url":"https://github.com/hendraaagil.png","language":"TypeScript","funding_links":["https://github.com/sponsors/hendraaagil","https://ko-fi.com/hendraaagil","https://saweria.co/hendraaagil"],"categories":[],"sub_categories":[],"readme":"# GilBot WhatsApp\n\nThis is the source code for the WhatsApp bot. Since there is an issue with the WhatsApp policy, I make this project open source. Feel free to deploy on your own or add more features. Don't forget to give credit to this repository.\n\n\u003cimg src=\"img/ban.jpg\" alt=\"Ban message from WhatsApp\" width=\"200\" /\u003e\n\n## Project Structure\n\n### [GitHub workflow](.github/workflows/deploy.yml)\n\nThis is for continuous deployment to VPS with [pm2](https://pm2.keymetrics.io/).\n\n### [Prisma ORM](prisma)\n\nThis is for configure the database (schema, migrations, seeders) with [Prisma](https://www.prisma.io/).\n\n### [Main source](src)\n\n#### [Assets](src/assets)\n\nStore any assets which will be sent to the user.\n\n#### [Commands](src/commands)\n\nStore all available bot commands.\n\n#### [Events](src/events)\n\nStore action for registered events. Currently it only listen to message event, because all of the commands is based on message sent from the user.\n\n#### [Libs](src/libs)\n\nAll of the utilities should be stored in here.\n\n#### [Types](src/types)\n\nStore type definition files.\n\n## Command flow\n\nIf you checked on the all files in [commands](src/commands) folder, the command is separated into 2 types:\n\n- Command without `requireLock`\n\n  ```mermaid\n  flowchart LR\n    A([Start]) --\u003e |User sends 'message'| B[Parse Message]\n    B --\u003e C{Is the message\u003cbr\u003eregistered as a command?}\n    C --\u003e |Yes| D[\"Run command.execute()\"]\n    C --\u003e |No| E[\"Run default command\"]\n    D --\u003e F\n    E --\u003e F\n    F[Send Response] --\u003e G\n    G([End])\n  ```\n\n- Command with `requireLock`\n\n  ```mermaid\n    flowchart LR\n      A([Start]) --\u003e |User sends 'message'| B[Parse Message]\n      B --\u003e C{Is message\u003cbr\u003eregistered as command?}\n      C --\u003e |Yes| D[\"Run command.execute()\"] --\u003e I[Create/Update Current Command]\n      C --\u003e |No| E[\"Run default command\"]\n      I --\u003e |User sends parameters| H[\"Run command.generate()\"]\n      H --\u003e F[Send Response] --\u003e J[Reset Current Command]\n      E --\u003e K[Send Response]\n      J --\u003e G([End])\n      K --\u003e G\n  ```\n\nThis `requireLock` configuration can be found in the [prisma data](prisma/data/commands.ts).\n\n## Development setup\n\nThis project require Node.js version `\u003e=16.x` and `yarn` package manager. All available scripts can be found in [package.json](package.json)\n\n## License\n\nThis project is under [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhendraaagil%2Fgilbot-whatsapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhendraaagil%2Fgilbot-whatsapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhendraaagil%2Fgilbot-whatsapp/lists"}