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

Commit

Permalink
2.0.6版发布
Browse files Browse the repository at this point in the history
  • Loading branch information
pandolia committed Feb 15, 2017
1 parent c6d4961 commit ec84662
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,19 +248,19 @@ GUI 模式是默认的模式,只适用于个人电脑。邮箱模式可以适

配置文件中的所有选项都有对应的命令行参数,在命令行参数中输入的选项优先级比配置文件高。输入 qqbot -h 可查看所有命令行参数格式。

如果配置的 QQBot-term 服务器端口号不是默认的 8188 ,那么在运行 qterm 或 qtm 命令时,需要在第一个参数中指定端口号,如:
如果配置的 QQBot-term 服务器端口号不是默认的 8188 ,那么在运行 qterm 或 qq 命令时,需要在第一个参数中指定端口号,如:

$ qterm 8100
$ qtm 8100 send buddy jack hello
$ qtm 8100 member group chatbot
$ qq 8100 send buddy jack hello
$ qq 8100 member group chatbot

七、参考资料
-------------

QQBot 参考了以下开源项目:

- [ScienJus/qqbot](https://github.com/ScienJus/qqbot) ruby
- [floatinghotpot/qqbot](https://github.com/floatinghotpot/qqbot) node.js
- [ScienJus/qqbot](https://github.com/ScienJus/qqbot) (ruby)
- [floatinghotpot/qqbot](https://github.com/floatinghotpot/qqbot) (node.js)
- [sjdy521/Mojo-Webqq](https://github.com/sjdy521/Mojo-Webqq) (perl)

在此感谢以上三位作者的无私分享,特别是感谢 ScienJus 对 SmartQQ 协议所做出的深入细致的分析。
Expand Down
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.5'
version = 'v2.0.6'

sampleConfStr = '''{
Expand Down
3 changes: 3 additions & 0 deletions qqbot/qsession.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def prepareSession(self):
self.clientid = 53999199
self.msgId = 6000000
self.session = requests.Session()
# self.session.verify
self.session.headers.update({
'User-Agent': ('Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9;'
' rv:27.0) Gecko/20100101 Firefox/27.0'),
Expand Down Expand Up @@ -479,6 +480,8 @@ def urlGet(self, url, data=None, **kw):
ERROR('无法和腾讯服务器建立私密连接,'
' 10 秒后将尝试使用非私密连接和腾讯服务器通讯。'
'若您不希望使用非私密连接,请按 Ctrl+C 退出本程序。')
time.sleep(10)
WARN('已开始尝试使用非私密连接和腾讯服务器通讯。')
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.
InsecureRequestWarning
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.5'
version = '2.0.6'

setup(
name = 'qqbot',
Expand Down

0 comments on commit ec84662

Please sign in to comment.