Git Product home page Git Product logo

qqbot's Introduction

QQBot

A Hubot adapter for QQ! And also A independence robot lives on the real world.
FYI: QQ is a instant messaging service widely used in china provided by Tencent.

基于WebQQ协议的QQ机器人。命令行工具,由不可思议的CoffeeScript提供支持。

DEMO 调戏用(测试和交流)QQ群:346167134

功能主治 Features

  • 💪 登录和验证码支持
  • 💪 支持好友,群,讨论组的接入
  • 💪 插件化,目前支持消息的派发
  • 💪 可作为hubot adapter使用
  • 💪 提供HTTP API支持(比如群通知什么的都能做哦)

你可以用TA来

  • 辅助管理群成员,比如自动清理刷屏用户啊(请自己实现)
  • 聊天机器人(请自己实现AI)
  • 部署机器人(请了解hubot的概念)
  • 通知机器人(监控报警啊什么的,对于天天做电脑前报警还得通过邮件短信提醒多不直接呢)

Acts as Hubot Adapter

  • Add hubot-qq as a dependency in your hubots package.json
  • Run npm install in your hubots directory
  • Run hubot with bin/hubot -a qq

Configurable Variables

HUBOT_QQ_ID			#QQ ID
HUBOT_QQ_PASS		#password
HUBOT_QQ_GROUP		#group name that hubot listens to
HUBOT_QQ_IMGPORT    #the port to serve verify-codes
#for more debug variables plz check src/hubot-qq source file

On LINUX or OSX use export VARIABLE=VALUE to set environment variables.

独立作为机器人运行

  • 执行 sudo npm install -g coffee-script 安装 CoffeeScript
  • 执行 npm install 更新依赖
  • 配置一份你自己的 config.yaml
  • 执行 ./main.coffee 让你的机器人躁起来~

部署

部署环境下请确保你的机器人是不需要验证码登录的,否则可能会无法长时间在线

我常用的命令 ./main.coffee nologin &>> tmp/dev.log & , 也可以使用进程管理工具比如 pm2 更省心

API

TODO GET http://localhost:port/stdin?token=(token)&value=(value)

改动

https://github.com/xhan/qqbot/blob/master/CHANGELOG.md

资料

TODO

  • 群成员拉取失败问题跟踪
  • 用户信息,qq号等
  • 机器人响应前缀
  • 图片发送支持

qqbot's People

Contributors

floatinghotpot avatar flyingnn avatar guodong000 avatar icyleaf avatar kinosang avatar mk124 avatar xhan 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  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

qqbot's Issues

无法登陆

登陆会报错10003
好像是因为腾讯把smartqq改成了只能二维码登陆

无法进入消息循环

协议是不是又变了?

[Fri Feb 21 2014 16:17:23 GMT+0800 (CST)] INFO api server started at port 9999
[Fri Feb 21 2014 16:17:23 GMT+0800 (CST)] INFO 登录 step0 验证码检测
[Fri Feb 21 2014 16:17:24 GMT+0800 (CST)] INFO - 无需验证码
[Fri Feb 21 2014 16:17:24 GMT+0800 (CST)] INFO 登录 step1 密码校验
[Fri Feb 21 2014 16:17:26 GMT+0800 (CST)] INFO 登录 step2 cookie获取
[Fri Feb 21 2014 16:17:27 GMT+0800 (CST)] DEBUG response: 302
[Fri Feb 21 2014 16:17:27 GMT+0800 (CST)] INFO 登录 step3 token 获取
[Fri Feb 21 2014 16:17:27 GMT+0800 (CST)] DEBUG login token response: 200
[Fri Feb 21 2014 16:17:27 GMT+0800 (CST)] INFO 登录成功 2796442902
[Fri Feb 21 2014 16:17:27 GMT+0800 (CST)] INFO fetching buddy list...
[Fri Feb 21 2014 16:17:27 GMT+0800 (CST)] INFO fetching group list...
[Fri Feb 21 2014 16:17:28 GMT+0800 (CST)] INFO fetching all groupmember...
[Fri Feb 21 2014 16:17:28 GMT+0800 (CST)] DEBUG updating all: all 3 finished 2 success 2

增加禁言功能

請問如果想增加群組禁言功能有沒有不可逾越的技術限制?(比如沒有這個功能的api)如果沒有的話我來寫一個

[Tue Apr 18 2017 10:05:19 GMT+0800 (CST)] ERROR 获取信息失败,请重新运

解析出错 http://s.web2.qq.com/api/get_friend_uin2
[Tue Apr 18 2017 10:05:19 GMT+0800 (CST)] ERROR 获取信息失败,请重新运行
主要是这个错误,问题的具体情况下,1个小时前还可以用二维码扫描登录,之后在再次面登录就不行了

解析出错 http://s.web2.qq.com/api/get_friend_uin2 <title>Apache Tomcat/7.0.50 - Error report</title><style></style>

HTTP Status 404 -


type Status report

message

description The requested resource is not available.


Apache Tomcat/7.0.50


[Tue Apr 18 2017 10:05:19 GMT+0800 (CST)] ERROR 获取信息失败,请重新运行

运行出错

    log.info('登录 step0 二维码检测');
        ^

TypeError: log.info is not a function
at D:\qqRobot\qqbot\src\qqauth_qrcode.js:237:13
at IncomingMessage. (D:\qqRobot\qqbot\src\qqauth_qrcode.js:60:16)
?[90m at IncomingMessage.emit (events.js:215:7)?[39m
?[90m at endReadableNT (_stream_readable.js:1183:12)?[39m
?[90m at processTicksAndRejections (internal/process/task_queues.js:80:21)?[39m

hubot下登陆成功,update_group_member报错

奇怪的是单独用qqbot不报这个错误。

[Fri Jul 10 2015 15:01:20 GMT+0800 (CST)] INFO 登录 step0 验证码检测
[Fri Jul 10 2015 15:01:21 GMT+0800 (CST)] INFO - 无需验证码
[Fri Jul 10 2015 15:01:21 GMT+0800 (CST)] INFO 登录 step1 密码校验
[Fri Jul 10 2015 15:01:21 GMT+0800 (CST)] INFO 登录 step2 cookie获取
[Fri Jul 10 2015 15:01:21 GMT+0800 (CST)] DEBUG response: 302
[Fri Jul 10 2015 15:01:21 GMT+0800 (CST)] INFO 登录 step3 token 获取
[Fri Jul 10 2015 15:01:21 GMT+0800 (CST)] DEBUG login token response: 200
[Fri Jul 10 2015 15:01:21 GMT+0800 (CST)] INFO 登录成功 
[Fri Jul 10 2015 15:01:21 GMT+0800 (CST)] DEBUG Loading Plugin help
[Fri Jul 10 2015 15:01:21 GMT+0800 (CST)] INFO fetching group list
[Fri Jul 10 2015 15:01:21 GMT+0800 (CST)] INFO √ group list fetched
[Fri Jul 10 2015 15:01:21 GMT+0800 (CST)] INFO fetching groupmember 
[Fri Jul 10 2015 15:01:22 GMT+0800 (CST)] ERROR TypeError: Cannot read property
'code' of undefined
  at QQBot.update_group_member (/home/san/totoro/node_modules/hubot-qq/src/qqbot
.coffee:106:5, <js>:149:45)
  at /home/san/totoro/node_modules/hubot-qq/src/qqbot.coffee:471:7, <js>:638:22
  at /home/san/totoro/node_modules/hubot-qq/src/qqbot.coffee:92:9, <js>:128:18
  at /home/san/totoro/node_modules/hubot-qq/src/qqapi.coffee:182:5, <js>:206:16
  at handle_resp_body (/home/san/totoro/node_modules/hubot-qq/src/httpclient.cof
fee:69:5, <js>:77:12)
  at IncomingMessage.<anonymous> (/home/san/totoro/node_modules/hubot-qq/src/htt
pclient.coffee:51:9, <js>:53:16)
  at IncomingMessage.emit (events.js:129:20)
  at _stream_readable.js:908:16
  at process._tickCallback (node.js:355:11)

[Fri Jul 10 2015 15:01:22 GMT+0800 (CST)] INFO √ buddy list fetched

不存在tmp\verifycode.jpg

如下提示,我手动创建对应文件后正常。

[Sat Apr 25 2015 21:30:37 GMT+0800 (**标准时间)] INFO 登录 step0 验证码检测
[Sat Apr 25 2015 21:30:38 GMT+0800 (**标准时间)] INFO 登录 step0.5 获取验证码
[Sat Apr 25 2015 21:30:38 GMT+0800 (**标准时间)] ERROR Error: ENOENT, no such
file or directory 'c:\Users\fakepath\node_modules\hubot-qq\tmp\verifycode.jpg'

  at Object.fs.openSync (fs.js:427:18)
  at Object.fs.writeFileSync (fs.js:966:15)
  at create_img_server (c:\Users\fakepath\node_modules\hubot-qq\src\qqauth.cof
fee:80:3, <js>:101:8)
  at IncomingMessage.<anonymous> (c:\Users\fakepath\node_modules\hubot-qq\src\
qqauth.coffee:64:7, <js>:79:9)
  at IncomingMessage.EventEmitter.emit (events.js:117:20)
  at _stream_readable.js:919:16
  at process._tickCallback (node.js:419:13)

另外,验证码一直出错。

[Sat Apr 25 2015 21:37:38 GMT+0800 (**标准时间)] INFO 登录 step0 验证码检测
[Sat Apr 25 2015 21:37:39 GMT+0800 (**标准时间)] INFO 登录 step0.5 获取验证码
[Sat Apr 25 2015 21:37:39 GMT+0800 (**标准时间)] NOTICE 打开该地址-> http://lo
calhost:12345
输入验证码:LMZM
[Sat Apr 25 2015 21:37:49 GMT+0800 (**标准时间)] NOTICE 验证码: LMZM
[Sat Apr 25 2015 21:37:49 GMT+0800 (**标准时间)] INFO 登录 step1 密码校验
[Sat Apr 25 2015 21:37:49 GMT+0800 (**标准时间)] ERROR 登录 step1 failed [ '4'
, '0', '', '0', '您输入的验证码不正确,请重新输入。', 'fakenumber' ]

验证码总是不正确

bj-localhost-mbp:hubot qi.sun$ ./start.sh
[Fri Aug 14 2015 17:13:58 GMT+0800 (CST)] INFO 登录 step0 验证码检测
[Fri Aug 14 2015 17:13:58 GMT+0800 (CST)] INFO 登录 step0.5 获取验证码
[Fri Aug 14 2015 17:13:58 GMT+0800 (CST)] NOTICE 打开该地址-> http://localhost:9008
输入验证码:TFVM
[Fri Aug 14 2015 17:14:36 GMT+0800 (CST)] NOTICE 验证码: TFVM
[Fri Aug 14 2015 17:14:36 GMT+0800 (CST)] INFO 登录 step1 密码校验
[Fri Aug 14 2015 17:14:36 GMT+0800 (CST)] ERROR 登录 step1 failed [ '4', '0', '', '0', '您输入的验证码不正确,请重新输入。', '' ]
^C
image

记录收到的信息到日志文件以及完善些的插件API…?

rt...
方便分析 :3

话说貌似加群后要重启,不然该群发言接收后会报错…

X:\FakePath\qqbot\src\qqbot.coffee:57
      users = info.minfo.filter(function(item) {
                  ^
TypeError: Cannot read property 'minfo' of undefined
  at QQBot.get_user_ingroup (X:\FakePath\qqbot\src\qqbot.coffee:43:21)
  at QQBot._create_message (X:\FakePath\qqbot\src\qqbot.coffee:234:31)
  at QQBot._on_message (X:\FakePath\qqbot\src\qqbot.coffee:197:16)
  at QQBot._handle_poll_event (X:\FakePath\qqbot\src\qqbot.coffee:189:38)
  at QQBot.handle_poll_responce (X:\FakePath\qqbot\src\qqbot.coffee:167:24)
  at X:\FakePath\qqbot\src\qqbot.coffee:129:12
  at X:\FakePath\qqbot\src\qqapi.coffee:41:9
  at handle_resp_body (X:\FakePath\qqbot\src\httpclient.coffee:55:5)
  at IncomingMessage.<anonymous> (X:\FakePath\qqbot\src\httpclient.coffee:38:13)
  at IncomingMessage.EventEmitter.emit (events.js:117:20)
  at _stream_readable.js:920:16
  at process._tickCallback (node.js:415:13)```

main运行错误

timger-mac:qqbot timger$ ./main.coffee 
path.exists is now called `fs.exists`.
ReferenceError: password is not defined
    at Object.<anonymous> (/Volumes/MACEXT/GitHub/qqbot/src/qqauth.coffee:120:23)
    at Object.<anonymous> (/Volumes/MACEXT/GitHub/qqbot/src/qqauth.coffee:315:4)
    at Module._compile (module.js:456:26)
    at Object.require.extensions..coffee (/usr/local/Cellar/coffee-script/1.1.3/lib/coffee-script/lib/coffee-script/coffee-script.js:21:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Volumes/MACEXT/GitHub/qqbot/main.coffee:13:10)
    at Object.<anonymous> (/Volumes/MACEXT/GitHub/qqbot/main.coffee:83:4)

配置如下

timger-mac:qqbot timger$ ls -alh
total 96
drwxr-xr-x  19 timger  staff   646B Mar 15 16:09 .
drwxr-xr-x  87 timger  staff   2.9K Mar 15 15:50 ..
drwxr-xr-x  13 timger  staff   442B Mar 15 15:50 .git
-rw-r--r--   1 timger  staff    31B Mar 15 15:50 .gitignore
-rw-r--r--   1 timger  staff   1.0K Mar 15 15:50 LICENSE
-rw-r--r--   1 timger  staff   3.9K Mar 15 15:50 README.md
-rw-r--r--   1 timger  staff   128B Mar 15 15:50 config.coffee
-rw-r--r--   1 timger  staff   253B Mar 15 16:09 config.demo.yaml
-rw-r--r--   1 timger  staff   236B Mar 15 15:50 config.demo.yaml~
-rw-r--r--   1 timger  staff   253B Mar 15 16:08 config.yaml
-rw-r--r--   1 timger  staff   251B Mar 15 15:56 config.yaml~
-rwxr-xr-x   1 timger  staff   2.0K Mar 15 15:50 main.coffee
drwxr-xr-x   6 timger  staff   204B Mar 15 15:57 node_modules
-rw-r--r--   1 timger  staff   671B Mar 15 15:50 package.json
drwxr-xr-x   5 timger  staff   170B Mar 15 15:50 plugins
-rw-r--r--   1 timger  staff   6.5K Mar 15 15:50 protocol.md
drwxr-xr-x  10 timger  staff   340B Mar 15 15:50 src
drwxr-xr-x   7 timger  staff   238B Mar 15 15:50 tests
drwxr-xr-x   3 timger  staff   102B Mar 15 15:50 tmp

config.yaml 里面的用户和密码已经填写了

./main.coffee nologin 出错

[Wed Apr 02 2014 07:05:37 GMT+0800 (CST)] INFO skip login
[Wed Apr 02 2014 07:05:37 GMT+0800 (CST)] DEBUG Loading Plugin help
[Wed Apr 02 2014 07:05:37 GMT+0800 (CST)] DEBUG Loading Plugin debug
[Wed Apr 02 2014 07:05:37 GMT+0800 (CST)] DEBUG Loading Plugin apiserver
[Wed Apr 02 2014 07:05:37 GMT+0800 (CST)] INFO api server started at port 3000
[Wed Apr 02 2014 07:05:37 GMT+0800 (CST)] INFO fetching buddy list...
[Wed Apr 02 2014 07:05:37 GMT+0800 (CST)] INFO fetching group list...
[Wed Apr 02 2014 07:05:37 GMT+0800 (CST)] INFO fetching discuss group list
[Wed Apr 02 2014 07:05:37 GMT+0800 (CST)] INFO update discuss group list

events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:904:11)
at Server._listen2 (net.js:1042:14)
at listen (net.js:1064:10)
at Server.listen (net.js:1138:5)
at APIServer.create_server (/home/node/qqbot-master/plugins/apiserver.coffee:83:12)
at APIServer.start (/home/node/qqbot-master/plugins/apiserver.coffee:65:21)
at Object.exports.init (/home/node/qqbot-master/plugins/apiserver.coffee:159:14)
at Dispatcher.reload_plugin (/home/node/qqbot-master/src/dispatcher.coffee:60:20)
at new Dispatcher (/home/node/qqbot-master/src/dispatcher.coffee:20:8)
at new QQBot (/home/node/qqbot-master/src/qqbot.coffee:33:25)
at /home/node/qqbot-master/main.coffee:45:15
at get_tokens (/home/node/qqbot-master/main.coffee:37:5)
at run (/home/node/qqbot-master/main.coffee:44:3)
at Object. (/home/node/qqbot-master/main.coffee:54:1)
at Object. (/home/node/qqbot-master/main.coffee:2:1)
at Module._compile (module.js:456:26)

独立运行一段时间后会挂掉,错误码是116

贴上运行日志

[Tue Feb 11 2014 20:14:35 GMT+0800 (CST)] INFO api server started at port 3000
[Tue Feb 11 2014 20:14:35 GMT+0800 (CST)] INFO 登录 step0 验证码检测
[Tue Feb 11 2014 20:14:41 GMT+0800 (CST)] INFO - 无需验证码
[Tue Feb 11 2014 20:14:41 GMT+0800 (CST)] INFO 登录 step1 密码校验
[Tue Feb 11 2014 20:14:41 GMT+0800 (CST)] INFO 登录 step2 cookie获取
[Tue Feb 11 2014 20:14:47 GMT+0800 (CST)] DEBUG response: 302
[Tue Feb 11 2014 20:14:47 GMT+0800 (CST)] INFO 登录 step3 token 获取
[Tue Feb 11 2014 20:14:48 GMT+0800 (CST)] DEBUG login token response: 200
[Tue Feb 11 2014 20:14:48 GMT+0800 (CST)] INFO 登录成功 2899116718
[Tue Feb 11 2014 20:14:48 GMT+0800 (CST)] INFO fetching buddy list...
[Tue Feb 11 2014 20:14:48 GMT+0800 (CST)] INFO fetching group list...
[Tue Feb 11 2014 20:14:48 GMT+0800 (CST)] DEBUG updating all: all 3 finished 1 success 1
[Tue Feb 11 2014 20:14:48 GMT+0800 (CST)] INFO fetching all groupmember...
[Tue Feb 11 2014 20:14:49 GMT+0800 (CST)] DEBUG groupmember all1 fin1 succ1
[Tue Feb 11 2014 20:14:49 GMT+0800 (CST)] DEBUG updating all: all 3 finished 3 success 3
[Tue Feb 11 2014 20:14:49 GMT+0800 (CST)] INFO Entering runloop, Enjoy!
[Tue Feb 11 2014 20:14:49 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:15:50 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:16:50 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:17:01 GMT+0800 (CST)] DEBUG [api] /send?type=group&to=kingnet%E7%9B%91%E6%8E%A7&msg=%E5%A4%A7%E5%AE%B6%E5%A5%BD&token=pay.kingnet.com
[Tue Feb 11 2014 20:17:01 GMT+0800 (CST)] INFO will send group kingnet监控 : 大家好
[Tue Feb 11 2014 20:17:01 GMT+0800 (CST)] INFO send msg 大家好 to group1669439780
[Tue Feb 11 2014 20:17:03 GMT+0800 (CST)] DEBUG send2group {"retcode":0,"result":"ok"}
[Tue Feb 11 2014 20:17:51 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:18:57 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:20:03 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:21:03 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:22:04 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:23:10 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:24:11 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:25:12 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:26:12 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:27:19 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:28:20 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:29:21 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:30:21 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:31:22 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:32:23 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:33:24 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:34:25 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:35:26 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:35:27 GMT+0800 (CST)] DEBUG polling...
[Tue Feb 11 2014 20:35:27 GMT+0800 (CST)] INFO need to update ptwebqq  { retcode: 116,
  p: '6773f4e64d5c069e1b042730a6f3d534d3e21d8166bcadde' }

更新ptwebqq时出错了好像,麻烦帮忙看下

登录失败 ERROR { retcode: 100000 }

root@sg:~# qqbot
[Tue Apr 24 2018 14:17:38 GMT+0800 (CST)] INFO 登录 step0 - 登录方式检测
[Tue Apr 24 2018 14:17:38 GMT+0800 (CST)] INFO 登录 step0.5 获取二维码
[Tue Apr 24 2018 14:17:39 GMT+0800 (CST)] NOTICE 请用 手机QQ 扫描该地址的二维码图片-> http://localhost:3100
[Tue Apr 24 2018 14:17:39 GMT+0800 (CST)] INFO 登录 step1 等待二维码校验结果
[Tue Apr 24 2018 14:17:40 GMT+0800 (CST)] INFO 登录 step1 等待二维码校验结果
[Tue Apr 24 2018 14:17:41 GMT+0800 (CST)] INFO 登录 step1 等待二维码校验结果
[Tue Apr 24 2018 14:17:42 GMT+0800 (CST)] INFO 登录 step1 等待二维码校验结果
[Tue Apr 24 2018 14:17:44 GMT+0800 (CST)] INFO 登录 step1 等待二维码校验结果
[Tue Apr 24 2018 14:17:45 GMT+0800 (CST)] INFO 登录 step1 等待二维码校验结果
[Tue Apr 24 2018 14:17:46 GMT+0800 (CST)] INFO 登录 step1 等待二维码校验结果
[Tue Apr 24 2018 14:17:48 GMT+0800 (CST)] INFO 登录 step1 等待二维码校验结果
[Tue Apr 24 2018 14:17:49 GMT+0800 (CST)] INFO 登录 step1 等待二维码校验结果
[Tue Apr 24 2018 14:17:50 GMT+0800 (CST)] INFO 登录 step1 等待二维码校验结果
[Tue Apr 24 2018 14:17:51 GMT+0800 (CST)] INFO 登录 step1 等待二维码校验结果
[Tue Apr 24 2018 14:17:53 GMT+0800 (CST)] INFO 登录 step1 等待二维码校验结果
[Tue Apr 24 2018 14:17:54 GMT+0800 (CST)] INFO 登录 step1 等待二维码校验结果
[Tue Apr 24 2018 14:17:55 GMT+0800 (CST)] INFO 登录 step1 等待二维码校验结果
[Tue Apr 24 2018 14:17:57 GMT+0800 (CST)] INFO 登录 step1 等待二维码校验结果
[Tue Apr 24 2018 14:17:58 GMT+0800 (CST)] INFO 登录 step1 等待二维码校验结果
[Tue Apr 24 2018 14:17:59 GMT+0800 (CST)] INFO 登录 step1 等待二维码校验结果
[Tue Apr 24 2018 14:18:00 GMT+0800 (CST)] INFO 登录 step2 cookie 获取 ptwebqq
[Tue Apr 24 2018 14:18:00 GMT+0800 (CST)] INFO 登录 step3 获取 vfwebqq
[Tue Apr 24 2018 14:18:00 GMT+0800 (CST)] INFO 登录失败
[Tue Apr 24 2018 14:18:00 GMT+0800 (CST)] ERROR { retcode: 100000 }

请问怎么处理?

无法运行呀~!,求指导

[Tue May 17 2016 12:22:15 GMT+0900 (JST)] INFO 登录 step2 cookie获取
[Tue May 17 2016 12:22:15 GMT+0900 (JST)] INFO 登录 step3 token 获取
[Tue May 17 2016 12:22:15 GMT+0900 (JST)] DEBUG login token response: 403

undefined:1

403 Forbidden

^ SyntaxError: Unexpected token < at Object.parse (native) at IncomingMessage. (/root/code/qqbot/src/qqauth_qrcode.js:215:20) at IncomingMessage.emit (events.js:117:20) at _stream_readable.js:944:16 at process._tickCallback (node.js:448:13)

同样无法进入消息循环

[Fri May 16 2014 21:17:23 GMT+0800 (CST)] INFO api server started at port 9999
[Fri May 16 2014 21:17:23 GMT+0800 (CST)] INFO 登录 step0 验证码检测
[Fri May 16 2014 21:17:24 GMT+0800 (CST)] INFO - 无需验证码
[Fri May 16 2014 21:17:24 GMT+0800 (CST)] INFO 登录 step1 密码校验
[Fri May 16 2014 21:17:26 GMT+0800 (CST)] INFO 登录 step2 cookie获取
[Fri May 16 2014 21:17:27 GMT+0800 (CST)] DEBUG response: 302
[Fri May 16 2014 21:17:27 GMT+0800 (CST)] INFO 登录 step3 token 获取
[Fri May 16 2014 21:17:27 GMT+0800 (CST)] DEBUG login token response: 200
[Fri May 16 2014 21:17:27 GMT+0800 (CST)] INFO 登录成功 2796442902
[Fri May 16 2014 21:17:27 GMT+0800 (CST)] INFO fetching buddy list...
[Fri May 16 2014 21:17:27 GMT+0800 (CST)] INFO fetching group list...
[Fri May 16 2014 21:17:28 GMT+0800 (CST)] INFO fetching all groupmember...
[Fri May 16 2014 21:17:28 GMT+0800 (CST)] DEBUG updating all: all 3 finished 2 success 2

消息接收

qq消息接受是如何做到的?我在qqapi.js内未发现有接收消息的方法呢?

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.