Connect Slack with WeChat, and even with Line in the future!
https://www.youtube.com/watch?v=cpermWDXwcE
As one of the world's most popular team collaboration tools, Slack is quite hot these years. When solving problems with our Chinese customers, they prefer to use WeChat as the communication tool. The drawbacks of using WeChat in that context are:
So, we’ve come up with this idea of Unichat – a tool to make Slack the uniform messaging platform, no matter which application our customer is using (Slack, WeChat or even Line). This will mean that in the future, we can use Slack as both internal and external messaging service.
These functions have been included in the first release:
It's recommended to use virtualenv.
cd <project_dir>
virtualenv --no-site-packages venv
source venv/bin/activate
To install the dependencies:
git submodule init
git submodule update
pip install -r requirements.txt
pip install ItChat/
pip install python-slackclient/
Run unichat:
python main.py <slack_token> <slack_channel> <gapi_token>
A QR code image should pop up. Scan the QR code with mobile WeChat to start the journey (send messages from WeChat/Line first to start the conversaction).
Now people in the Slack channel can communicate with the people in the WeChat group(to enable/disable the translation, type trans_on/trans_off inside the Slack channel).