Skip to content

Commit

Permalink
废除文档地址
Browse files Browse the repository at this point in the history
  • Loading branch information
CikeyQi committed Oct 17, 2024
1 parent 3f94ed1 commit 963ae78
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 23 deletions.
2 changes: 1 addition & 1 deletion apps/aestheticPredict.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class score extends plugin {

async score(e) {
if (!API)
return await e.reply('请先配置动漫审美预测所需API,配置教程:https://ap-plugin.com/Config/docs9')
return await e.reply('请先配置动漫审美预测所需API')
if (FiguretypeUser[e.user_id]) {
e.reply('当前有任务在列表中排队,请不要重复发送,取得结果后完成后会自动发送结果,如果长时间没有结果,请等待1分钟再试')
return true
Expand Down
2 changes: 1 addition & 1 deletion apps/aiDectect.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class AiDetect extends plugin {

async anime_ai_detect(e) {
if (!API)
return await e.reply("请先配置鉴定图片所需API,配置教程:https://ap-plugin.com/Config/docs5")
return await e.reply("请先配置鉴定图片所需API")
if (FiguretypeUser[e.user_id]) {
e.reply('当前有任务在列表中排队,请不要重复发送,鉴定完成后会自动发送结果,如果长时间没有结果,请等待1分钟再试')
return true
Expand Down
2 changes: 1 addition & 1 deletion apps/appreciation.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class appreciate extends plugin {
let setting = await Config.getSetting()
if (!setting.appreciation.useSD) {
if (!API)
return await e.reply("请先配置鉴赏图片所需API,配置教程:https://ap-plugin.com/Config/docs4")
return await e.reply("请先配置鉴赏图片所需API")
await AppreciatePictures(e)
} else {
await AppreciatePictures(e)
Expand Down
2 changes: 1 addition & 1 deletion apps/cartoonization.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class Cartoonization extends plugin {

async WhiteBoxCartoonization(e) {
if (!API)
return await e.reply("请先配置图片动漫化所需API,配置教程:https://ap-plugin.com/Config/docs7")
return await e.reply("请先配置图片动漫化所需API")
if (FiguretypeUser[e.user_id]) {
e.reply('当前有任务在列表中排队,请不要重复发送,动漫化完成后会自动发送结果,如果长时间没有结果,请等待1分钟再试')
return true
Expand Down
2 changes: 1 addition & 1 deletion apps/controlNet.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ async function sendMsg(e, msg) {
async function getAPI(e) {
let config = await Config.getcfg()
if (config.APIList.length == 0) {
e.reply(`当前无可用绘图接口,请先配置接口。\n配置指令: #ap添加接口\n参考文档:https://ap-plugin.com/Config/\n发送#ap说明书以查看详细说明`)
e.reply(`当前无可用绘图接口,请先配置接口。\n配置指令: #ap添加接口\n发送#ap说明书以查看详细说明`)
return true
}
let api = config.APIList[config.usingAPI - 1].url
Expand Down
2 changes: 1 addition & 1 deletion apps/nat2Prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class nat2pmpt extends plugin {
}
async nat2pmpt(e) {
if (!API)
return await e.reply("请先配置处理所需的OpenAI Key,配置教程:https://ap-plugin.com/Config/docs13")
return await e.reply("请先配置处理所需的OpenAI Key")
let lang = e.msg.replace(/^#/, '')
if (!lang)
return await e.reply("请输入要处理的自然语言")
Expand Down
2 changes: 1 addition & 1 deletion apps/removeBg.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class RemoveBackground extends plugin {

async AnimeRemoveBackground(e) {
if (!URL)
return await e.reply("请先配置去背景所需API,配置教程:https://ap-plugin.com/Config/docs6")
return await e.reply("请先配置去背景所需API")
//将URL处理成API格式
const API = 'https://' + URL.split('/')[4] + '-anime-remove-background.hf.space/api/queue/'

Expand Down
4 changes: 2 additions & 2 deletions apps/setApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class set extends plugin {
.trim()

if (/hf.space/.test(api))
return e.reply("大清晰术和鉴赏的接口无法用于绘图哦,详见https://ap-plugin.com/Config/")
return e.reply("大清晰术和鉴赏的接口无法用于绘图哦")

let apcfg = await Config.getcfg()

Expand Down Expand Up @@ -208,7 +208,7 @@ export class set extends plugin {
let li = []
let i = 1
if (apcfg.APIList.length == 0) {
return e.reply("当前无可用接口,请先添加接口\n命令:#ap添加接口\n参考文档:https://ap-plugin.com/Config/docs1")
return e.reply("当前无可用接口,请先添加接口\n命令:#ap添加接口")
}
for (let val of apcfg.APIList) {
li.push(`${i}${val.remark}${i == apcfg.usingAPI ? ' [默认]' : ''}` + (e.isPrivate && e.isMaster ? `\n ${val.url}` : ''))
Expand Down
2 changes: 1 addition & 1 deletion apps/superResolution.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class SR extends plugin {
*/
async Real_CUGAN(e) {
if (!api)
return await e.reply('请先配置大清晰术所需接口,参考文档:https://ap-plugin.com/Config/docs3')
return await e.reply('请先配置大清晰术所需接口')

e = await parseImg(e)

Expand Down
2 changes: 1 addition & 1 deletion apps/switchModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ async function get_vae_list() {
async function get_apiurl() {
let config = await Config.getcfg();
if (config.APIList.length == 0) {
e.reply("当前无可用绘图接口,请先配置接口。\n配置指令: #ap添加接口\n参考文档:https://ap-plugin.com/Config/\n发送#ap说明书以查看详细说明", true);
e.reply("当前无可用绘图接口,请先配置接口。\n配置指令: #ap添加接口\n发送#ap说明书以查看详细说明", true);
return true;
} else {
let apiurl = config.APIList[config.usingAPI - 1];
Expand Down
9 changes: 0 additions & 9 deletions apps/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ export class Tools extends plugin {
reg: "^#?撤回$",
fnc: "WithDraw",
},
{
reg: "^#?ap文档$",
fnc: "apDoc",
},
{
reg: "^#?ap(全局|本群|我的)词云$",
fnc: "apWordCloud",
Expand Down Expand Up @@ -141,11 +137,6 @@ export class Tools extends plugin {
e.group.recallMsg(e.message_id);
} catch (err) { }
}

async apDoc(e) {
e.reply("https://ap-plugin.com/Config/", true)
return true
}
async apWordCloud(e) {
if (e.at) e.user_id = e.at
let type = e.msg.match(/(||)/)[1]
Expand Down
2 changes: 1 addition & 1 deletion components/ai_painting/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Draw {
code: 41,
info: "未配置接口",
msg: '',
description: `当前无可用绘图接口,请先配置接口。\n配置指令: #ap添加接口\n参考文档:https://ap-plugin.com/Config/\n发送#ap说明书以查看详细说明`
description: `当前无可用绘图接口,请先配置接口。\n配置指令: #ap添加接口\n发送#ap说明书以查看详细说明`
}
let index = paramdata.specifyAPI || config.usingAPI
let apiobj = config.APIList[index - 1]
Expand Down
4 changes: 2 additions & 2 deletions components/ai_painting/nsfwcheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class NsfwCheck {
// 未配置apikey
if (this.appid == "" || this.apikey == '' || this.secretkey == "") {
return {
message: "百度图片审核服务调用失败,请先配置百度图片审核接口,配置教程:https://ap-plugin.com/Config/docs12 \n\n您也可以发送“#ap全局设置审核关闭”以关闭图片审核功能,关闭后绘制的图片将直接发送,不再进行审核"
message: "百度图片审核服务调用失败,请先配置百度图片审核接口 \n\n您也可以发送“#ap全局设置审核关闭”以关闭图片审核功能,关闭后绘制的图片将直接发送,不再进行审核"
}
}
// 鉴黄
Expand Down Expand Up @@ -93,7 +93,7 @@ class NsfwCheck {
}
// 处理结果
if (data.error_code == 14) {
return { message: "百度鉴黄服务调用失败,请先配置百度鉴黄接口,配置教程:https://ap-plugin.com/Config/docs12 \n\n您也可以发送“ap全局设置鉴黄关闭”以关闭鉴黄功能" }
return { message: "百度鉴黄服务调用失败,请先配置百度鉴黄接口 \n\n您也可以发送“ap全局设置鉴黄关闭”以关闭鉴黄功能" }
} else if (data.error_code == 18) {
return { message: "触发百度图像审核服务QPS限制。可能是请求频率过高,或你没有在百度云控制台开通“内容审核-图像”资源,或开通时间过短(小于15分钟)" }
} else if (data.error_code == 216201 || data.conclusion == "审核失败") {
Expand Down

0 comments on commit 963ae78

Please sign in to comment.