Giter VIP home page Giter VIP logo

unichat's Introduction

Unichat

Demo

https://www.youtube.com/watch?v=cpermWDXwcE

Background

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:

  • Conversation history is not archived
  • We can only invite people with a WeChat account to the conversation
  • We need to switch between WeChat and Slack to sync some information to colleagues or to JIRA

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:

  • Send text message from WeChat to Slack and vice versa
  • Enable translation for text messages from Chinese to English and vice versa
  • Send attachment (image/pdf/excel/video etc) from WeChat to Slack and vice versa
  • Auto translation for emojis

Install

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

Prerequisite

  • Need to have a Slack account acting as the bot serivce that will interact with WeChat, and it's supposed to be invited into a Slack channel.
  • Need to have a WeChat account which will interact with Slack, and it's supposed to be invited into a WeChat group.
  • Need to have a google api token in order to enable the translation(will make it optional in future release for people who don't need the translation functionality).

Run

  • 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).

unichat's People

Contributors

gaarazhu avatar jerrypnz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.