# node_bot **Repository Path**: axinzi/node_bot ## Basic Information - **Project Name**: node_bot - **Description**: 基于go-cqhttp,使用node.js搭建的bot - **Primary Language**: JavaScript - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-07-04 - **Last Updated**: 2022-08-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 基于`go-cqhttp`,使用`node.js`搭建的qqBot ## 初始化 ### 启动`go-cqhttp` 在`ws://0.0.0.0:10001`地址开启正向WS代理 ### 启动本项目 `/config/index`: 配置文件中修改个人配置 - `bot.adminId`: 管理员账号 - `bot.name`: bot 名字 - `bot.ws`: 正向WS代理地址 - `private`: 私人文件路径, 默认不上传至git ``` bash npm i -g yarn yarn yarn dev ``` ## 使用说明 ### bot `/util/onMsg`中接收规则为: - 私聊 - 群聊 - `@bot` - `bot message` ### 插件(核心) `/plugin`的子文件夹将作为插件添加入bot中 bot的一切功能将在此实现 ## 插件 | 插件 | 收 | 发 | 说明 | | ------------- | ---------------------------- | ----------- | ------------------------------------------------ | | `test` | `bot *`/`@bot *`/`私聊` | `bot在这!!` | 测试`bot`是否在线 | | `wake-on-lan` | `bot 唤醒 ff:ff:ff:ff:ff:ff` | `唤醒成功` | 在部署`bot`设备的局域网内启动指定`MAC`地址的`PC` |