1.0.1 • Published 2 years ago

oicq-onebot v1.0.1

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

dm oneBot V11 oneBot V12 node engine

docs

使用示例

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

鸣谢

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