Giter Site home page Giter Site logo

liushuchun / wechatcmd Goto Github PK

View Code? Open in Web Editor NEW
695.0 40.0 165.0 46.31 MB

提供微信终端版本、微信命令行版本聊天功能、微信机器人

License: GNU General Public License v3.0

Go 99.94% Shell 0.06%
mac golang wechat terminal client wechat-bot wechat-sdk

wechatcmd's Introduction

wechatcmd star this repo fork this repo Build

=================

微信命令行版本

开发这个命令行版本,一是为了熟悉微信的接口,二是方便咱们习惯命令行的同学。

现在是中文的支持不是很好,还没有什么特别好的解决方法。

项目还是远未完成,热烈欢迎有兴趣的朋友一起加入开发。

有什么建议可以提issue。谢谢,也欢迎直接提PR。

功能特性

  1. 用户检索
  2. 聊天表情包快捷键
  3. 自动聊天
  4. Vimer式快捷键让操作丝般顺滑
  5. 更加Geek的feel.

键盘快捷键

   
Ctrl-n下一页
Ctrl-p上一页
Enter输入
Ctrl-c退出
Ctrl-1退出自动回复
Ctrl-2启用自动回复
Ctrl-3机器人自动回复(还没好)

运行bin文件

linux,mac,windows编好的包分别在install 下面的linux/ mac/ win/下。(windows暂时支持的不好,虽然是交叉编译可以运行,但是其UI机制和unix系差的很多,termui支持的并不是很好)

git clone [email protected]:liushuchun/wechatcmd.git
cd wechatcmd/install/
进入各自目录

Mac安装

$ go get -u github.com/liushuchun/wechatcmd

Linux安装

$ go get -u github.com/liushuchun/wechatcmd

现在实现的界面:

聊天动态图 出现二维码之后,使用微信扫描二维码,进行登录。 登陆后图 聊天图片

使用

$ wechatcmd

现在完成的功能

  • 实现微信登陆
  • 实现微信认证
  • 实现拉取用户信息
  • 同步消息
  • 设置自动回复:正在忙,稍后回来,等等。
  • 自动更新消息
  • 自动回复消息
  • 获取其他消息
  • 聊天
  • 群聊
  • 读取图片
  • 自动保存消息到本地
  • 表情包的翻译

由于工作太忙,后期已经没有精力继续开发,欢迎有兴趣的同学继续开发

wechatcmd's People

Contributors

heartlock avatar liushuchun avatar nerylj avatar yerstd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wechatcmd's Issues

wsl-ubuntu | go get -u github.com/liushuchun/wechatcmd

出现 go/src/github.com/liushuchun/wechatcmd/ui/layout.go:17:19: undefined: termui.Par
go/src/github.com/liushuchun/wechatcmd/ui/layout.go:18:19: undefined: termui.Par
go/src/github.com/liushuchun/wechatcmd/ui/layout.go:19:19: undefined: termui.Par
go/src/github.com/liushuchun/wechatcmd/ui/layout.go:20:19: undefined: termui.List

同时我按照 Bin目录,找不到install
请问可以提供一下 具体一些的安装,使用方式吗

对于光标这个问题你是如何解决的?

我看到你程序里面好像把光标隐藏掉了。
在 macosx 下 terminal 的光标(那种会把文字包住的光标)会在中文的情况下只包住一半。
如图所示:

screen shot 2017-07-26 at 8 01 00 pm

我想问问对于这个问题你有什么想法没有?

Can not install on mac os x

$ go get -u github.com/liushuchun/wechatcmd
# cd /Users/sunfmin/gopkg/src/github.com/liushuchun/wechatcmd; git submodule update --init --recursive
fatal: No url found for submodule path 'vendor/github.com/daviddengcn/go-colortext' in .gitmodules
package github.com/liushuchun/wechatcmd: exit status 128

中文多字输入乱序问题

在输入信息过程中,当一次性输入多中文字时,会出现乱序的情况,这个大概是哪块的问题?

go get 安装失败,提示termui类缺失,我的go版本是1.12

go get -u github.com/liushuchun/wechatcmd

github.com/liushuchun/wechatcmd/ui

../../github.com/liushuchun/wechatcmd/ui/layout.go:17:19: undefined: termui.Par
../../github.com/liushuchun/wechatcmd/ui/layout.go:18:19: undefined: termui.Par
../../github.com/liushuchun/wechatcmd/ui/layout.go:19:19: undefined: termui.Par
../../github.com/liushuchun/wechatcmd/ui/layout.go:20:19: undefined: termui.List

add Vendor dir

I think it is necessary to add a vendor folder, and put all dependencies in it.

请提供配置文件:config.json

[*🤔 *]->:2017/08/01 12:57:02 启动...
[window.QRLogin.code = 200; window.QRLogin.uuid = "gbthXm024A==" 200 gbthXm024A==][*🤔 *]->:2017/08/01 12:57:56 请提供配置文件:config.json

==============================================

请问config.json在哪里配置啊?

拉取联系人失败

首先感谢开源出来您的代码,由于自身的需求,然后参考了您的代码,在使用的过程中,经常会出现拉去联系人失败的问题,看了之后里面你在使用sprintf格式化字符串的时候,好多时间戳是int类型,然后你使用的是%s导致格式化错误,但是发现不是这个问题,还希望能够修复这个问题,因为一直登陆不上,所以自己直接先登陆网页版的微信,然后在启动程序,发现没有这个错误了,希望能够得到解答,谢谢了~

login error

[pi@raspberrypi ~/wechatcmd] $ ./wechatcmd
[AI]:2016/10/26 10:34:58 启动...
[window.QRLogin.code = 200; window.QRLogin.uuid = "QfDcqExoow==" 200 QfDcqExoow==][AI]:2016/10/26 10:35:38 登陆...
[AI]:2016/10/26 10:35:39 登陆失败:strconv.ParseInt: parsing "2174574120": value out of range

在树莓派上启动,将获取的二维码通过ftp server传到windows主机上用手机扫描. 每次扫描二维码以后都会出现该错误.

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.