From ad4e91c19b6d2a12f07132a3d5f39de1baeefa13 Mon Sep 17 00:00:00 2001 From: takayama Date: Fri, 22 Jan 2021 17:38:34 +0900 Subject: [PATCH] up ver to 1.13 --- README.md | 11 +++++------ client.d.ts | 2 +- package-lock.json | 2 +- package.json | 4 ++-- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index fbe2db95..ce3da71d 100644 --- a/README.md +++ b/README.md @@ -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请告诉我。 @@ -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 diff --git a/client.d.ts b/client.d.ts index d7f306ea..7544cb6d 100644 --- a/client.d.ts +++ b/client.d.ts @@ -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 diff --git a/package-lock.json b/package-lock.json index 17f8227d..897ab60b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "oicq", - "version": "1.12.8", + "version": "1.13.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 7341d760..79e0d953 100644 --- a/package.json +++ b/package.json @@ -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",