mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 05:47:11 +00:00
fix: update prompt management
This commit is contained in:
parent
994a83ac4a
commit
5e4d921002
1 changed files with 5 additions and 5 deletions
|
|
@ -244,7 +244,7 @@ export class help extends plugin {
|
||||||
async removeSharePrompt (e) {
|
async removeSharePrompt (e) {
|
||||||
let master = (await getMasterQQ())[0]
|
let master = (await getMasterQQ())[0]
|
||||||
let name = e.msg.replace(/^#(chatgpt|ChatGPT)(删除|取消|撤销)共享设定/, '')
|
let name = e.msg.replace(/^#(chatgpt|ChatGPT)(删除|取消|撤销)共享设定/, '')
|
||||||
let response = await fetch(`https://chatgpt.roki.best/prompt?name=${name}&qq=${master || (getUin(e) + '')}`, {
|
let response = await fetch(`https://prompt.ikechan8370.com/prompt?name=${name}&qq=${master || (getUin(e) + '')}`, {
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
headers: {
|
headers: {
|
||||||
'FROM-CHATGPT': 'ikechan8370'
|
'FROM-CHATGPT': 'ikechan8370'
|
||||||
|
|
@ -363,7 +363,7 @@ export class help extends plugin {
|
||||||
examples
|
examples
|
||||||
}
|
}
|
||||||
logger.info(toUploadBody)
|
logger.info(toUploadBody)
|
||||||
let response = await fetch('https://chatgpt.roki.best/prompt', {
|
let response = await fetch('https://prompt.ikechan8370.com/prompt', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: JSON.stringify(toUploadBody),
|
body: JSON.stringify(toUploadBody),
|
||||||
headers: {
|
headers: {
|
||||||
|
|
@ -387,7 +387,7 @@ export class help extends plugin {
|
||||||
|
|
||||||
async detailCloudPrompt (e) {
|
async detailCloudPrompt (e) {
|
||||||
let name = e.msg.replace(/^#(chatgpt|ChatGPT)(在线)?预览设定详情/, '')
|
let name = e.msg.replace(/^#(chatgpt|ChatGPT)(在线)?预览设定详情/, '')
|
||||||
let response = await fetch('https://chatgpt.roki.best/prompt?name=' + name, {
|
let response = await fetch('https://prompt.ikechan8370.com/prompt?name=' + name, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'FROM-CHATGPT': 'ikechan8370'
|
'FROM-CHATGPT': 'ikechan8370'
|
||||||
|
|
@ -414,7 +414,7 @@ export class help extends plugin {
|
||||||
search = split[0]
|
search = split[0]
|
||||||
page = parseInt(split[1])
|
page = parseInt(split[1])
|
||||||
}
|
}
|
||||||
let response = await fetch('https://chatgpt.roki.best/prompt/list?search=' + search + `&page=${page - 1}`, {
|
let response = await fetch('https://prompt.ikechan8370.com/prompt/list?search=' + search + `&page=${page - 1}`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'FROM-CHATGPT': 'ikechan8370'
|
'FROM-CHATGPT': 'ikechan8370'
|
||||||
|
|
@ -442,7 +442,7 @@ export class help extends plugin {
|
||||||
await e.reply('设定名字呢?', true)
|
await e.reply('设定名字呢?', true)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
let response = await fetch('https://chatgpt.roki.best/prompt?name=' + promptName, {
|
let response = await fetch('https://prompt.ikechan8370.com/prompt?name=' + promptName, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'FROM-CHATGPT': 'ikechan8370'
|
'FROM-CHATGPT': 'ikechan8370'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue