🐞 fix: 添加dy缺少ck提示 & 结构整理

This commit is contained in:
zhiyu1998 2024-05-25 21:49:47 +08:00
parent 131e6a71c7
commit 51fc3d6d42
2 changed files with 6 additions and 4 deletions

View File

@ -24,7 +24,7 @@ import { downloadM3u8Videos, mergeAcFileToMp4, parseM3u8, parseUrl } from "../ut
import {
BILI_DEFAULT_INTRO_LEN_LIMIT,
DIVIDING_LINE,
douyinTypeMap,
douyinTypeMap, HELP_DOC,
REDIS_YUNZAI_ISOVERSEA,
REDIS_YUNZAI_LAGRANGE,
SUMMARY_PROMPT,
@ -238,7 +238,7 @@ export class tools extends plugin {
await this.douyinRequest(douUrl).then(async res => {
// 当前版本需要填入cookie
if (_.isEmpty(this.douyinCookie)) {
e.reply("检测到没有Cookie无法解析抖音");
e.reply(`检测到没有Cookie无法解析抖音${HELP_DOC}`);
return;
}
const douId = /note\/(\d+)/g.exec(res)?.[1] || /video\/(\d+)/g.exec(res)?.[1];
@ -1543,7 +1543,7 @@ export class tools extends plugin {
async weixin(e) {
// 判断是否有总结的条件
if (_.isEmpty(this.aiApiKey) || _.isEmpty(this.aiApiKey)) {
e.reply("没有配置 Kimi无法为您的微信文章总结\n文档https://gitee.com/kyrzy0416/rconsole-plugin")
e.reply(`没有配置 Kimi无法为您的微信文章总结${HELP_DOC}`)
return true;
}
const urlReg = /(?:https?:\/\/)?mp\.weixin\.qq\.com\/[A-Za-z\d._?%&+\-=\/#]*/g;

View File

@ -92,3 +92,5 @@ export const OCR_PROMPT = `
`
export const SUMMARY_PROMPT = `请返回您仔细阅读正文后精心写成的详尽笔记`
export const HELP_DOC = "\n文档https://gitee.com/kyrzy0416/rconsole-plugin"