From f71f1d7ed7626c5abc351a3930b35da13dd8f81a Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Thu, 30 Mar 2023 20:34:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20qq=E5=8F=B7=E6=A0=BC=E5=BC=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/prompts.js | 8 ++- resources/help/help.html | 107 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+), 2 deletions(-) create mode 100644 resources/help/help.html diff --git a/apps/prompts.js b/apps/prompts.js index 1495627..c3fcb2f 100644 --- a/apps/prompts.js +++ b/apps/prompts.js @@ -237,7 +237,7 @@ export class help extends plugin { async removeSharePrompt (e) { let master = (await getMasterQQ())[0] let name = e.msg.replace(/^#(chatgpt|ChatGPT)(删除|取消|撤销)共享设定/, '') - let response = await fetch(`https://chatgpt.roki.best/prompt?name=${name}&qq=${master || Bot.uin}?`, { + let response = await fetch(`https://chatgpt.roki.best/prompt?name=${name}&qq=${master || (Bot.uin + '')}?`, { method: 'DELETE', headers: { 'FROM-CHATGPT': 'ikechan8370' @@ -323,6 +323,10 @@ export class help extends plugin { } async uploadPromptR18 () { + let master = (await getMasterQQ())[0] + if (Config.debug) { + logger.mark('主人qq号:' + master) + } if (this.e.msg.trim() === '取消') { await redis.del('CHATGPT:UPLOAD_PROMPT') await this.reply('已取消上传', true) @@ -340,7 +344,7 @@ export class help extends plugin { let toUploadBody = { title: currentUse, prompt: content, - qq: (await getMasterQQ())[0] || Bot.uin, // 上传者设定为主人qq或机器人qq + qq: master || (Bot.uin + ''), // 上传者设定为主人qq或机器人qq use: extraData.use === 'Custom' ? 'Sydney' : 'ChatGPT', r18, description diff --git a/resources/help/help.html b/resources/help/help.html new file mode 100644 index 0000000..b595d2d --- /dev/null +++ b/resources/help/help.html @@ -0,0 +1,107 @@ + + + + + bangzhu + + +
+
+ ChatGPT-Plugin v2.4.9 帮助 +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + \ No newline at end of file