Skip to content

Commit

Permalink
test optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
zeruniverse committed Jan 27, 2016
1 parent 4493ceb commit 495b482
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion QQBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def deleteall(self, content):
try:
with open('groupfollow.txt','r') as f:
for line in f:
tmp = line.strip('\n')
tmp = line.strip('\n').strip('\r')
if str(tmp) in GroupNameList:
GroupWatchList.append(str(GroupNameList[str(tmp)]))
logging.info("关注:"+str(tmp))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ WINDOWS EXE 32位: [点击下载](https://github.com/zeruniverse/QQRobot/release

##如何使用
+http://www.tuling123.com/openapi/ 申请一个API KEY(免费,5000次/天), 贴到```QQBot.py```的第34行 (测试KEY:c7c5abbc9ec9cad3a63bde71d17e3c2c)
+ 修改groupfollow.txt,将需要小黄鸡回复的群的群号写入(小黄鸡必须为群成员),用逗号隔开
+ 修改groupfollow.txt,将需要小黄鸡回复的群的群名写入(小黄鸡必须为群成员),每行一个群名,请不要打多余的空格。
+ ```nohup python2 QQBot.py >qbot.log&```
+ ```ls```
+ 若出现v.png则用QQ安全中心扫描,否则继续```ls```
Expand Down
6 changes: 3 additions & 3 deletions groupfollow.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
11111,22222,33333,44444,55555,66666
77777,88888
99999
群名1
群名2
群名3

0 comments on commit 495b482

Please sign in to comment.