2026-03-01 06:34:23 -03:00
2026-03-02 00:43:51 -03:00
2026-03-02 00:38:05 -03:00
2026-03-02 00:38:05 -03:00
2026-03-02 00:38:05 -03:00
2026-03-02 00:38:05 -03:00
2026-03-02 00:17:32 -03:00
2026-03-02 00:43:25 -03:00
2026-03-02 00:38:05 -03:00
2026-03-01 05:39:31 -03:00
2026-03-01 05:03:42 -03:00
2026-03-02 00:38:05 -03:00
2026-03-02 00:17:32 -03:00

whatsapp-bot

🐳 Docker Deployment (Server)

Build and run the central inventory server:

# Build the image
docker build -t go-bot:latest .

# Run the container (Map port 9090 and persist the database/cache)
docker run -d \
  --name whatsapp-bot \
  -p 9090:9090 \
  -e OPENROUTER_API_KEY=your_key \
  -e WHATSAPP_PHONE_ID=your_id \
  -e WHATSAPP_TOKEN=your_token \
  -v $(pwd)/whatsapp-bot/data:/root/data:Z \
  --restart unless-stopped \
  go-bot:latest

Or use this stack:

services:
  bot:
    image: go-bot:latest
    container_name: whatsapp-bot
    restart: unless-stopped
    environment:
      - OPENROUTER_API_KEY=your_api_key_here
      - WHATSAPP_PHONE_ID=your_phone_id_here
      - WHATSAPP_TOKEN=your_token_here
    volumes:
      # Map host data folder to the app's data path
      # The :Z is required for SELinux (Fedora/RHEL)
      - YOUR_PATH/whatsapp-bot/data:/root/data:Z
    ports:
      - "8080:9090"
Description
No description provided
Readme AGPL-3.0 16 MiB
Languages
Go 68.9%
HTML 22.8%
CSS 7%
Dockerfile 1.3%