Metadata-Version: 2.4
Name: welcomebot
Version: 0.1.2
Summary: join signal chat groups and post a message when people join
Author-email: Chris Wren <chris+github@drwren.com>
Maintainer-email: Chris Wren <chris+github@drwren.com>
License-Expression: MIT
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

- 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 python -m welcomebot

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

if migrating an existing bot, copy:
 - 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

