1.0.1 • Published 3 years ago
oicq-onebot v1.0.1
使用示例
- 新建一个node项目
npm init -y
- 安装oicq-oneBot
npm install oicq-onebot
- 在项目跟目录添加配置文件config.yaml
port: 6727 # 项目oicq-oneBot监听的端口(默认:6727)
bots:
1472258369: # 你的机器人账户
version: V11 # oneBot版本(V11 或 V12)
- 新建入口文件
index.js
并输入一下内容
const {createApp}=require('oicq-onebot')
createApp()
.start()
- 启动项目
node ./index.js
鸣谢
- takayama-lily/oicq 底层服务支持
- takayama-lili/onebot oicq的oneBot原先版本