Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,15 @@ Content:
```



这个分支的维护者是maze,如果你对这个分支感兴趣或者想讨论如何earn money,可以加机器人

<div align=center>
<img src="imgs/auto.jpg" width="220" height="440" alt="join us"/>
</div>

- association_login
目前网页版微信已经可以脱离扫码,但是依然需要在客户端进行确认登录。
## <a name="Discussion-Group">Discussion Group</a>
如果你希望和 WeixinBot 的其他开发者交流,或者有什么问题和建议,欢迎大家加入微信群【Youth fed the dog】一起讨论。扫描下面的二维码添加机器人为好友,并回复【Aidog】获取入群链接。

Expand All @@ -794,6 +803,3 @@ Content:
注:这个不是群的二维码,是机器人拉你入群,记得回复机器人【Aidog】哦~ (secret code: Aidog)

## <a name="Recent-Update">Recent Update</a>

- association_login
目前网页版微信已经可以脱离扫码,但是依然需要在客户端进行确认登录。
Binary file added imgs/auto.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
237 changes: 203 additions & 34 deletions wxbot_demo_py3/weixin.py
100755 → 100644

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion wxbot_project_py2.7/config/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ class Constant(object):
@brief All used constants are listed here
"""

WECHAT_CONFIG_FILE = 'config/wechat.conf'
#WECHAT_CONFIG_FILE = 'config/wechat.conf'
#D:\Nyeti\WeixinBot\wxbot_project_py2.7\config
WECHAT_CONFIG_FILE = './config/wechat.conf.bak'
LOGGING_LOGGER_NAME = 'WeChat'

QRCODE_BLACK = '\033[40m \033[0m'
Expand Down
17 changes: 9 additions & 8 deletions wxbot_project_py2.7/config/wechat.conf.bak
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[wechat]
host = wx.qq.com
uuid =
redirect_uri =
uin =
sid =
skey =
pass_ticket =
device_id =
last_login =
uuid = oapPDnJdxw==
redirect_uri = https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?ticket=ATulQQeCil-MWPTJRm5u6Nm0@qrticket_0&uuid=IeBciVJGKA==&lang=zh_CN&scan=1493261718&fun=new
uin = 958021414
sid = l5x1dpMfwIoEIQ42
skey = @crypt_61bd19cf_2b33b10fbd4e331e088189f588835130
pass_ticket = bXeq47%2FO%2FeI6Zu2%2FkZVwR%2FdX4ou7uupJBUOM3fVwAT%2FQSwJWMzbYE0Ihrq7ZGMro
device_id = e654278747631844
last_login = 1493261974.02
synckey = 1_658451454|2_658451727|3_658451296|1000_1493253001

[setting]
prefix = tmp_data/
Expand Down
3 changes: 2 additions & 1 deletion wxbot_project_py2.7/wechat/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# coding: utf-8

from wechat import WeChat
from wechat import WeChat
#from wechat import *
14 changes: 7 additions & 7 deletions wxbot_project_py2.7/wechat/wechat.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ def start(self):
if self.msg_handler:
self.msg_handler.check_schedule_task()

# if self.bot:
# r = self.bot.time_schedule()
# if r:
# for g in self.GroupList:
# echo('[*] 推送 -> %s: %s' % (g['NickName'], r))
# g_id = g['UserName']
# self.webwxsendmsg(r, g_id)
if self.bot:
r = self.bot.time_schedule()
if r:
for g in self.GroupList:
echo('[*] 推送 -> %s: %s' % (g['NickName'], r))
g_id = g['UserName']
self.webwxsendmsg(r, g_id)

def get_run_time(self):
"""
Expand Down
2 changes: 2 additions & 0 deletions wxbot_project_py2.7/wechat/wechat_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ def genqrcode(self):
if data == '':
return
qrcode_path = save_file('qrcode.jpg', data, './')
qrcode_path = os.path.abspath(qrcode_path)
print(qrcode_path)
os.startfile(qrcode_path)
else:
str2qr_terminal(self.wx_conf['API_qrcode'] + self.uuid)
Expand Down
1 change: 1 addition & 0 deletions wxbot_project_py2.7/weixin_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# coding: utf-8

#===================================================
#from wechat import *
from wechat import WeChat
from wechat.utils import *
from wx_handler import WeChatMsgProcessor
Expand Down
12 changes: 6 additions & 6 deletions wxbot_project_py2.7/wx_handler/wechat_msg_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,12 @@ def handle_command(self, cmd, msg):
else:
# reply bot
# ---------
# if wechat.bot:
# r = wechat.bot.reply(cmd)
# if r:
# wechat.webwxsendmsg(r, g_id)
# else:
# pass
if wechat.bot:
r = wechat.bot.reply(cmd)
if r:
wechat.webwxsendmsg(r, g_id)
else:
pass
img_name = [
'0.jpg', '1.jpeg', '2.gif', '3.jpg', '4.jpeg',
'5.gif', '6.gif', '7.gif', '8.jpg', '9.jpg'
Expand Down