https://github.com/green-api/simple-reg-bot
Sample WhatsApp bot using docker container
https://github.com/green-api/simple-reg-bot
bot chat docker example whatsapp
Last synced: 10 months ago
JSON representation
Sample WhatsApp bot using docker container
- Host: GitHub
- URL: https://github.com/green-api/simple-reg-bot
- Owner: green-api
- License: mit
- Created: 2020-12-01T17:44:08.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-24T16:01:15.000Z (over 4 years ago)
- Last Synced: 2025-02-03T16:34:18.390Z (12 months ago)
- Topics: bot, chat, docker, example, whatsapp
- Language: TypeScript
- Homepage: https://green-api.com
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple reg bot
A sample chat bot in container that collects basic info (name, birth year etc) about user from WhatsApp. The WhatsApp integration is based on [whatsapp-bot-library](https://github.com/green-api/whatsapp-bot) and features V0 protocol. You need to get phone charged and connected to network, you only need a phone number.
## How to run
1 Register on [green-api.com](https://green-api.com/) (it's free), get own ID_INSTANCE and API_TOKEN_INSTANCE and inside folder [credentials](credentials) put file also called ``credentials`` with the next content:
```
ID_INSTANCE=00000
API_TOKEN_INSTANCE=0000000000000000000000000000000000000
```
2 Clone the repository and run commands:
```
docker-compose up
```
## For developers
You can change source code and compile own container with the next commands
```
docker build . -t ripreal/simple-reg-bot --no-cache
docker run --name ripreal/simple-reg-bot:1.0.1
```
## Third-party libraries
* [@green-api/whatsapp-bot](https://github.com/green-api/whatsapp-bot) - a WhatsApp bot library