Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Commit

Permalink
2.0.7版发布
Browse files Browse the repository at this point in the history
  • Loading branch information
pandolia committed Feb 20, 2017
1 parent 53164b5 commit 41bc316
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion qqbot/qconf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

version = 'v2.0.6'
version = 'v2.0.7'

sampleConfStr = '''{
Expand Down
3 changes: 1 addition & 2 deletions qqbot/qrcodemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def sendEmail(self):
else:
lastSubject = self.qrcodeMail['subject']
else:
time.sleep(30)
try:
DEBUG('开始查询邮箱 %s 中的最近的邮件', self.mailAgent.account)
with self.mailAgent.IMAP() as imap:
Expand All @@ -99,8 +100,6 @@ def sendEmail(self):
WARN('查询邮箱 %s 中的邮件失败 %s', self.mailAgent.account, e)
else:
DEBUG('最近的邮件: %s', lastSubject)

time.sleep(20)

def Destroy(self):
if self.mailAgent:
Expand Down
6 changes: 3 additions & 3 deletions qqbot/qterm.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ def Run(self):
except socket.error:
WARN('QQBot-Term 服务器出现 accept 错误')
else:
name = 'QTerm 客户端<%s:%s>' % addr
name = 'QTerm客户端"%s:%s"' % addr
sock.settimeout(5.0)
try:
data = sock.recv(1024)
except socket.error:
sock.close()
else:
INFO('来自 %s 的消息:%s', name, data)
INFO('QTerm 命令:%s', repr(data))
yield TermMessage(name, sock, data)

def processMsg(self, factory, msg):
Expand All @@ -71,7 +71,7 @@ def __init__(self, name, sock, content):
def Reply(self, rep):
try:
self.sock.sendall(rep and str(rep) or '\r\n')
INFO('已向 %s 回复消息', self.name)
# INFO('已向 %s 回复消息', self.name)
except socket.error:
WARN('回复 %s 失败', self.name)
finally:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from setuptools import setup

version = '2.0.6'
version = '2.0.7'

setup(
name = 'qqbot',
Expand Down

0 comments on commit 41bc316

Please sign in to comment.