1.1.8 • Published 2 years ago

@oicq/onebot v1.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

dm oneBot V11 oneBot V12 node engine qq group docs

使用示例

  1. 新建一个node项目
npm init -y
  1. 安装@oicq/oneBot
npm install @oicq/onebot
  1. 在项目跟目录添加配置文件config.yaml
port: 6727 # 项目oicq-oneBot监听的端口(默认:6727)
1472258369: # 你的机器人账户
  version: V11 # oneBot版本(V11 或 V12)
  1. 新建入口文件index.js并输入一下内容
const {createApp}=require('@oicq/onebot')
createApp()
.start()
  1. 启动项目
node ./index.js

使用命令行启动

npm install -g @oicq/onebot
oicq-onebot

使用接口管理oneBot

urlmethodparamsdesc
/listGET获取当前运行的机器人列表
/detailGETuin获取指定机器人配置
/qrcodeGETuin获取指定机器人登录二维码
/addPOST{uin,...config}添加机器人 config 为机器人配置
/editPOST{uin,...config}修改机器人配置 config 为机器人配置
/removegetuin移除机器人

鸣谢

  1. takayama-lily/oicq 底层服务支持
  2. takayama-lili/onebot oicq的oneBot原先版本
1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago