All Projects → momocow → node-cq-websocket

momocow / node-cq-websocket

Licence: MIT license
A Node SDK for developing QQ chatbots based on WebSocket, which is depending on CoolQ and CQHTTP API plugin.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to node-cq-websocket

Coolq Http Api
为 酷Q 提供通过 HTTP 或 WebSocket 接收事件和调用 API 的能力
Stars: ✭ 1,787 (+1885.56%)
Mutual labels:  coolq, cqhttp
Go-Mirai-Client
基于MiraiGo的客户端,使用反向 websocket 收发私聊、群聊消息,消息格式类似onebot。支持多账号,很稳定
Stars: ✭ 90 (+0%)
Mutual labels:  coolq, cqhttp
awesome-bot
A multi-functional QQ chatbot developed in NoneBot
Stars: ✭ 27 (-70%)
Mutual labels:  coolq, cqhttp
zhamao-framework
协程、高性能、灵活的聊天机器人 & Web 开发框架(炸毛框架)
Stars: ✭ 99 (+10%)
Mutual labels:  coolq, cqhttp
nonebot-plugin
一些 NoneBot 即开即用、良好兼容的插件——自定义表情包、早晚安、Vtuber今日运势等
Stars: ✭ 101 (+12.22%)
Mutual labels:  coolq, cqhttp
OneBot-YaYa
✨ OneBot(原CQHTTP) 多平台的实现
Stars: ✭ 108 (+20%)
Mutual labels:  coolq, cqhttp
ProtobufBot
QQ机器人框架 ProtobufBot 整体介绍。看README
Stars: ✭ 45 (-50%)
Mutual labels:  coolq, cqhttp
splatoon2-qqbot
主要用于 Splatoon2 群的机器人
Stars: ✭ 40 (-55.56%)
Mutual labels:  coolq, cqhttp
Go Cqhttp
cqhttp的golang实现,轻量、原生跨平台.
Stars: ✭ 3,481 (+3767.78%)
Mutual labels:  coolq
CoolQ-Golang-Plugin
Golang 酷Q CoolQ 插件 plugin 模板 template
Stars: ✭ 17 (-81.11%)
Mutual labels:  coolq
Shiro
基于OneBot协议的QQ机器人快速开发框架
Stars: ✭ 78 (-13.33%)
Mutual labels:  cqhttp
GreenOnions
一个Mirai的QQ机器人, 实现了搜图, RSS订阅转发, 根据PixivID下载原图, 翻译, setu等功能
Stars: ✭ 109 (+21.11%)
Mutual labels:  cqhttp
java
基于 go-cqhttp 和 java 的 qq 机器人
Stars: ✭ 128 (+42.22%)
Mutual labels:  cqhttp
Sisters.WudiLib
C# 与 One Bot 协议实现通信。
Stars: ✭ 33 (-63.33%)
Mutual labels:  coolq
CoolQBot
基于 NoneBot2 的聊天机器人
Stars: ✭ 62 (-31.11%)
Mutual labels:  coolq
mai-bot
Based on nonebot, a common bot framework for maimai.
Stars: ✭ 157 (+74.44%)
Mutual labels:  coolq
Kobirt
基于酷 Q 框架的 QQ 机器人,K 菊专用。
Stars: ✭ 27 (-70%)
Mutual labels:  coolq
kaiheila-onebot
OneBot(原CQHTTP)的开黑啦(kaiheila)平台实现。
Stars: ✭ 20 (-77.78%)
Mutual labels:  cqhttp
OlivOS
OlivOS / Witness Union
Stars: ✭ 48 (-46.67%)
Mutual labels:  cqhttp
jcq-coolq
Java CoolQ SDK Library
Stars: ✭ 89 (-1.11%)
Mutual labels:  coolq

本項目即日起停止維護,隨著酷Q、CQHTTP一同走入歷史,畫下完美句點。感謝各方好友的支持與參與。


node-cq-websocket

npm npm license CQHttp Commitizen friendly semantic-release Known Vulnerabilities

🚧 分支狀態

  • 主線
    • Build Status
    • Coverage Status
  • dev
    • Build Status
    • Coverage Status

🗯️ 關於此 SDK

依賴 CQHTTP API 插件的 websocket 接口, 為 NodeJs 開發者提供一個搭建 QQ 聊天機器人的 SDK。

關於 CQHTTP API 插件,見 richardchien/coolq-http-api

本 SDK 尚處於測試階段,使用上仍有機會碰到Bug,歡迎提交PR或issue回報。

由於付費問題,本 SDK 目前僅針對酷Q Air做測試。

🎉 功能/特色

  • 輕鬆配置, 快速搭建 QQ 聊天機器人。
  • 自動維護底層連線, 開發者只需專注在聊天應用的開發。若斷線, 可依照配置重新連線
  • 支持消息監聽器內, 快速響應
  • 連線建立時, 可自動獲取機器人QQ號

🗎 SDK 文件

閱讀更多 ➡️

🛠️ 開發者看板

本 SDK 採用 ava 框架執行測試。

打包 CQWebSocket 至 browser 環境

npm run build

使用 webpack 將 SDK 及所有依賴打包, 並在 /dist目錄下產生一個 cq-websocket.min.js

建置 demo/webpack

npm run build-demo

打包 /demo/webpack/app.js 內容, 在 /demo/webpack/www 目錄下產生一個 bundle.js

開發日誌

閱讀更多 ➡️

Known Issues

  • CQHTTP API 插件尚未支援收發 Fragmant, 暫時禁用
  • 在 Node 10.x 下, Buffer 寫入時的 RangeError (發生在 SDK 調用 API 方法時)。

    這是 Node 的問題, 暫時使用 Node 8.x 以下就沒問題。

RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= 0 and <= 4294967295. Received -805456141
    at checkInt (internal/buffer.js:35:11)
    at writeU_Int32BE (internal/buffer.js:625:3)
    at Buffer.writeUInt32BE (internal/buffer.js:638:10)
    at WebSocketFrame.toBuffer (/***/node-cq-websocket/node_modules/websocket/lib/WebSocketFrame.js:257:24)
    at WebSocketConnection.sendFrame (/***/node-cq-websocket/node_modules/websocket/lib/WebSocketConnection.js:857:43)
    at WebSocketConnection.fragmentAndSend (/***/node-cq-websocket/node_modules/websocket/lib/WebSocketConnection.js:793:14)
    at WebSocketConnection.sendUTF (/***/node-cq-websocket/node_modules/websocket/lib/WebSocketConnection.js:733:10)
    at W3CWebSocket.send (/***/node-cq-websocket/node_modules/websocket/lib/W3CWebSocket.js:116:26)

🍙 歡迎餵食

請勿拍打 🤜 無限期掙飯中

Buy Me A Coffee

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].