From 9421bc4efb95c37833415856efe71aed5f9b47cb Mon Sep 17 00:00:00 2001 From: Ctrlcsv <1509167646@qq.com> Date: Thu, 4 Aug 2022 00:15:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BD=93=E5=8A=9B=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E5=88=97=E8=A1=A8=E6=98=BE=E7=A4=BA=E4=B8=8A=E9=99=90?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/Note.js | 20 +++++++++++++++++++- apps/index.js | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/apps/Note.js b/apps/Note.js index 8ed157c..fce4295 100644 --- a/apps/Note.js +++ b/apps/Note.js @@ -384,8 +384,12 @@ export async function Note_appoint(e) { nickname = info.card || info.nickname } if (msg.includes("列表")) { + let xlmsg=msg.replace("列表","") || 1 let mstList = []; - urlType.unshift(`请选择序号~~\n当前支持选择的模板有:`) + let sumCount=(urlType.length/98).toFixed(0); + xlmsg=sumCount-xlmsg>-1?xlmsg:sumCount; + urlType.unshift(`模板列表共,第${xlmsg+1}页,共${urlType.length}张,请选择序号~~\n当前支持选择的模板有:`) + let count=0; for (let [index, item] of urlType.entries()) { let msg_pass = []; let imgurl; @@ -400,6 +404,12 @@ export async function Note_appoint(e) { } item = index + "." + item } + if(msg_pass.length==98){ + break; + } + if(index<98*(xlmsg-1)){ + continue; + } msg_pass.push(item) if (imgurl) { msg_pass.push(imgurl) @@ -410,6 +420,14 @@ export async function Note_appoint(e) { user_id: Bot.uin }) } + if(xlmsg*98