Sync your IM group chat to Slack.
Project description
Chatroom-Syncer
Chatroom-Syncer is a project to sync IM Chat Room to the public domain like IRC in the old days, so that the information, context and history of communication could be discoverred, learnt from and referenced by others, anyware, anytime.
Run
Run with Docker
Run it in background:
cp config-example.yaml config.yaml
cp env-example .env
docker-compose up -d
Scan the QR code with your WeChat App, and you are ready to go!
docker logs wechat-room-syncer_chatroom-syncer_1 2>/dev/null | grep -v Wechaty
Run from host
Run Webchaty gateway first:
export token="iwonttellyou"
docker run -d \
--name=wechaty-gateway \
--net=bridge \
-p 9009:9009 \
-e WECHATY_PUPPET_SERVICE_TOKEN="$token" \
-v /wechaty_data:/wechaty/data \
--restart=unless-stopped weygu/wechaty-gateway:latest
Run Chatroom-Syncer:
python3 -m pip install chatroom-syncer
cp config-example.yaml config.yaml
export SLACK_TOKEN="xoxb-1234567890-1234567890-1234567890-1234567890"
python3 -m chatroom_syncer
Configuration
Copy the config-example.yaml to config.yaml
cp config-example.yaml config.yaml
And fill in the following fields in the table:
Field | Description |
---|---|
group_channel_mapping |
A mapping from WeChat group name to Slack channel name |
Contribute
Build from host
git clone https://github.com/wey-gu/chatroom-syncer && cd chatroom-syncer
# install pdm
curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3 -
# install chatroom-syncer
pdm install
If dependencies are updated, run pdm sync
to update the lock manifest.
pdm sync
Build from docker
docker-compose -f docker-compose.dev.yaml build
docker-compose -f docker-compose.dev.yaml up -d
# get QR code to scan
docker logs wechat-room-syncer_chatroom-syncer_1 2>/dev/null | grep -v Wechaty
# watch logs of the chatroom syncer
docker logs wechat-room-syncer_chatroom-syncer_1 --follow
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chatroom-syncer-0.1.1.tar.gz
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for chatroom_syncer-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca7a8867107fcb9201c942d93708fa46755e6f6ce7f9a83df2d85b72511eed2a |
|
MD5 | b6389684eeae031897a7195cc1f9309e |
|
BLAKE2b-256 | 0cd578ecbc767fd179226f4d29142a4c45ca01d11a397a1410c6fda9e3429aa5 |