Giter Club home page Giter Club logo

Comments (12)

zhuweiyou avatar zhuweiyou commented on August 16, 2024

看这个 https://github.com/go-cqhttp/node/tree/master/plugin/hot 安装 wordcloud.

需要python环境

from for-node.

Learntotolearn avatar Learntotolearn commented on August 16, 2024

我重新拉取了项目,配置的账号。在运行npm run dev 时遇到这个错误:

> dev
> cross-env NODE_ENV=development nodemon index.js

[nodemon] 2.0.16
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node index.js`
node:events:505
      throw er; // Unhandled 'error' event
      ^

Error: connect ECONNREFUSED 0.0.0.0:6700
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
Emitted 'error' event on WebSocket instance at:
    at emitErrorAndClose (/root/node/node_modules/ws/lib/websocket.js:874:13)
    at ClientRequest.<anonymous> (/root/node/node_modules/ws/lib/websocket.js:736:5)
    at ClientRequest.emit (node:events:527:28)
    at Socket.socketErrorListener (node:_http_client:454:9)
    at Socket.emit (node:events:527:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '0.0.0.0',
  port: 6700
}

from for-node.

zhuweiyou avatar zhuweiyou commented on August 16, 2024

看主页的 README.md, 要先跑起来 go-cqhttp

from for-node.

Learntotolearn avatar Learntotolearn commented on August 16, 2024

登录QQ,需要扫描。但扫描会提示登录环境异常,导致登录失败。这个有办法解决吗?
middle_img_v2_24ee36df-a5e4-439d-abf7-b2d3a32d88ag
使用登录协议是iPad。

from for-node.

Learntotolearn avatar Learntotolearn commented on August 16, 2024

image
没有 手机验证码登录 的选择。

from for-node.

zhuweiyou avatar zhuweiyou commented on August 16, 2024

去这个项目 https://github.com/Mrs4s/go-cqhttp 的 issues 下搜相关的方案.

from for-node.

Learntotolearn avatar Learntotolearn commented on August 16, 2024

感谢,我使用代理后,重新扫码可以登录了。

看主页的 README.md, 要先跑起来 go-cqhttp

现在我把这个go-cqhttp跑起来了,在到项目根目录下执行 npm run dev 命令时,还是会报错。

> dev
> cross-env NODE_ENV=development nodemon index.js

[nodemon] 2.0.16
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node index.js`
node:events:505
      throw er; // Unhandled 'error' event
      ^

Error: connect ECONNREFUSED 0.0.0.0:6700
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
Emitted 'error' event on WebSocket instance at:
    at emitErrorAndClose (/root/node/node_modules/ws/lib/websocket.js:874:13)
    at ClientRequest.<anonymous> (/root/node/node_modules/ws/lib/websocket.js:736:5)
    at ClientRequest.emit (node:events:527:28)
    at Socket.socketErrorListener (node:_http_client:454:9)
    at Socket.emit (node:events:527:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '0.0.0.0',
  port: 6700
}

from for-node.

zhuweiyou avatar zhuweiyou commented on August 16, 2024

6700是ws的端口, 查一下 go-cqhttp 的 device.json 配置文件里 是否正确配置了 - ws:

from for-node.

zhuweiyou avatar zhuweiyou commented on August 16, 2024

https://docs.go-cqhttp.org/guide/config.html#%E9%85%8D%E7%BD%AE%E4%BF%A1%E6%81%AF

from for-node.

Learntotolearn avatar Learntotolearn commented on August 16, 2024

6700是ws的端口, 查一下 go-cqhttp 的 device.json 配置文件里 是否正确配置了 - ws:

对,忘了配置这里了。现在可以正常运行了。谢谢!! 舔狗日记的插件,需要添加什么token呀?

from for-node.

zhuweiyou avatar zhuweiyou commented on August 16, 2024

那个很久之前做的了, 可能已经失效了, 你去网上另外找接口吧

from for-node.

Learntotolearn avatar Learntotolearn commented on August 16, 2024

好的。再次感谢你的回复。

from for-node.

Related Issues (12)

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.