go-cqhttp / Node
Licence: mit
基于 go-cqhttp 和 nodejs 的 qq 机器人
Stars: ✭ 102
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Node
Application
一个设计精巧, 协议实现完备的, 基于 mirai-api-http 的即时聊天软件自动化框架.
Stars: ✭ 307 (+200.98%)
Mutual labels: qqbot
Kokkorobot Multi Platform
基于 HoshinoBot 的跨平台公主连结机器人,支持 discord, telegram, tomon等。A multi-platform bot for princess connect based on HoshinoBot, supporting discord, telegram and others.
Stars: ✭ 77 (-24.51%)
Mutual labels: qqbot
Qqbot
QQBot: A conversation robot base on Tencent's SmartQQ
Stars: ✭ 3,643 (+3471.57%)
Mutual labels: qqbot
Hoshinobot
A qqbot for Princess Connect Re:Dive (and other usage :)
Stars: ✭ 608 (+496.08%)
Mutual labels: qqbot
Mirai Plugins
🌠一个用于收录Mirai插件的仓库|mirai|plugins|mirai plugins|mirai-plugins
Stars: ✭ 55 (-46.08%)
Mutual labels: qqbot
Unifiedmessagerelay
Group Message Forward Framework (supports QQ Telegram Line Discord)
Stars: ✭ 363 (+255.88%)
Mutual labels: qqbot
Ichunqiu qqbot
i春秋社区机器人自2018年02月04日开始服务于i春秋社区,每日文章推送、文章查询、魔法币查询、作者信息查询、作家团奖金余额查询、奖金排行榜、i春秋课程查询等一列功能。据不完全统计,使用人数已经超过3.5万,使用次数达到20万,最大覆盖700+个群。
Stars: ✭ 79 (-22.55%)
Mutual labels: qqbot
go-cqhttp/node
基于 go-cqhttp 和 nodejs 的 qq 机器人
启动
-
在 https://github.com/Mrs4s/go-cqhttp/releases 下载对应平台的可执行文件, 放到 go-cqhttp 目录中
-
安装 nodejs 环境 (建议 12.0 以上版本), 根目录运行
npm install
安装依赖 -
运行
go-cqhttp/下载的文件
, 根据提示填写 QQ 号和密码等信息, 参考文档 https://docs.go-cqhttp.org/guide/quick_start.html -
根目录运行
npm run dev
插件
配置插件
在 config.js
中配置的插件才会被加载, 并且需要在插件目录运行 npm install
安装依赖
// config.js
module.exports = {
plugin: {
// key: 可以是 npm 包名, 也可以是相对路径
// value: 传给插件的配置对象 {}
'path-to-plugin': {}
}
}
内置插件
插件 | 说明 |
---|---|
blank | 空白插件 |
dog | 舔狗日记 |
fund | 基金查询 |
hot | 热门词汇 |
mm | 美女图片 |
qrcode | 二维码 |
run-js | 运行 JS |
stock | 股票查询 |
开发插件
复制 plugin/blank, 参考其它插件和 https://docs.go-cqhttp.org 进行开发
/**
* @param options 传给插件的配置
*/
module.exports = options => {
/**
* @param data 收到的消息
* @param ws 机器人 WebSocket 实例
* @param http 机器人 HTTP 实例
*/
return async ({ data, ws, http }) => {
// TODO:
}
}
部署 (Linux)
-
安装 screen 工具后: 后台运行
go-cqhttp/下载的文件
(screen 命令用法自行搜索) -
安装 pm2 工具后: 在根目录运行
npm start
-
代码更新: 在根目录运行
npm run reload
因为 go-cqhttp 登录需要交互操作, 而 pm2 不支持, 所以这里用 screen 运行 go-cqhttp, 你也可以用其它方法后台运行
其它
- go-cqhttp/java - qq 机器人 java 版
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].