Metadata-Version: 2.4
Name: welcomebot
Version: 0.1.1
Summary: Add your description here
Requires-Python: >=3.14
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: dotenv>=0.9.9
Requires-Dist: signalbot>=0.25.0
Dynamic: license-file

# json-rpc mode for the signalbot library

sudo docker run -d  --name signal-api --restart=always -p 9922:8080 \
     -v signal-state:/home/.local \
     -e 'MODE=json-rpc' bbernhard/signal-cli-rest-api

docker container stop  signal-api
docker container rm  signal-api   

- create .env with
  - SIGNAL_SERVICE=localhost:9922
  - PHONE_NUMBER The number of the signal account
  - WELCOME_MANAGER The signal ID of the manager
  - WELCOME_CNC The command and control group chat ID

uv sync
uv run pytest
uv run src/welcombot/main.py

if migrating an existing bot:
 - signalbot_internal_state.db
 - bot_memory.db
 
# native mode for the pysignalclirestapi library

sudo docker run -d  --name signal-api --restart=always -p 9922:8080  \
     -v signal-state:/home/.local/share/signal-cli \
     -e 'MODE=native' bbernhard/signal-cli-rest-api

