Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
up ver to 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
takayama-lily committed Jan 22, 2021
1 parent ca370c6 commit ad4e91c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![node engine](https://img.shields.io/node/v/oicq.svg)](https://nodejs.org)
[![Gitter](https://badges.gitter.im/takayama-lily/oicq.svg)](https://gitter.im/takayama-lily/oicq?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

* QQ(安卓)协议的nodejs实现。也参考了一些其他开源仓库如mirai、miraiGo等
* QQ(安卓)协议的nodejs实现。也参考了一些其他开源仓库如[mirai](https://github.com/mamoe/mirai)[miraiGo](https://github.com/Mrs4s/MiraiGo)
* 以高效和稳定为第一目的,在此基础上不断完善,将会逐步支持手机协议的大部分功能。
* 使用 [CQHTTP](https://cqhttp.cc) 风格的API、事件和参数,并且原生支持经典的CQ码。
* 请使用 `Nodejs 12.16` 以上版本。有bug请告诉我。
Expand All @@ -21,19 +21,18 @@
**Example:**

```js
const {createClient} = require("oicq");
const { createClient } = require("oicq");
const uin = 123456789; // your account
const bot = createClient(uin);

//监听并输入滑动验证码ticket
bot.on("system.login.slider", ()=>{
process.stdin.once("data", input=>{
bot.on("system.login.slider", (data) => {
process.stdin.once("data", (input) => {
bot.sliderLogin(input);
});
});

bot.on("message", data=>{
console.log(data);
bot.on("message", (data) => {
if (data.group_id > 0)
bot.sendGroupMsg(data.group_id, "hello");
else
Expand Down
2 changes: 1 addition & 1 deletion client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface ConfBot {
platform?: number, //1:安卓手机(默认) 2:aPad 3:安卓手表 4:MacOS(实验性) 5:iPad(实验性)
kickoff?: boolean, //被踢下线是否在3秒后重新登陆,默认false
ignore_self?: boolean,//群聊是否无视自己的发言,默认true
resend?: boolean, //被风控时是否尝试用分片发送,默认true (一种古老的消息,暂不支持分片重组)
resend?: boolean, //被风控时是否尝试用分片发送,默认true
data_dir?: string, //数据存储文件夹,需要可写权限,默认主目录下的data文件夹

slider?: boolean, //启用滑动验证码,默认true
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "oicq",
"version": "1.12.8",
"upday": "2021/1/8",
"version": "1.13.0",
"upday": "2021/1/22",
"description": "QQ protocol!",
"main": "client.js",
"types": "client.d.ts",
Expand Down

0 comments on commit ad4e91c

Please sign in to comment.