Skip to content

Latest commit

 

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
目录

快速开始

npm install suika

import { OneBot_WebSocket } from 'suika'

const bot = new OneBot_WebSocket({
  url: 'ws://localhost:6700',
  maxRetries: 3
});

bot.BotEvent.on('group_message', (msg) => {
  console.log(msg);
})

已实现API

使用方法

bot.send_private_msg({
  user_id: 10000,
  message: 'mmmmmmmessage',
  auto_escape: true
}).then(result => {
  const msg_id = result.data.message_id;
})

正向 WebSocket