mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 添加dy缺少ck提示 & 结构整理
This commit is contained in:
parent
131e6a71c7
commit
51fc3d6d42
@ -24,7 +24,7 @@ import { downloadM3u8Videos, mergeAcFileToMp4, parseM3u8, parseUrl } from "../ut
|
|||||||
import {
|
import {
|
||||||
BILI_DEFAULT_INTRO_LEN_LIMIT,
|
BILI_DEFAULT_INTRO_LEN_LIMIT,
|
||||||
DIVIDING_LINE,
|
DIVIDING_LINE,
|
||||||
douyinTypeMap,
|
douyinTypeMap, HELP_DOC,
|
||||||
REDIS_YUNZAI_ISOVERSEA,
|
REDIS_YUNZAI_ISOVERSEA,
|
||||||
REDIS_YUNZAI_LAGRANGE,
|
REDIS_YUNZAI_LAGRANGE,
|
||||||
SUMMARY_PROMPT,
|
SUMMARY_PROMPT,
|
||||||
@ -238,7 +238,7 @@ export class tools extends plugin {
|
|||||||
await this.douyinRequest(douUrl).then(async res => {
|
await this.douyinRequest(douUrl).then(async res => {
|
||||||
// 当前版本需要填入cookie
|
// 当前版本需要填入cookie
|
||||||
if (_.isEmpty(this.douyinCookie)) {
|
if (_.isEmpty(this.douyinCookie)) {
|
||||||
e.reply("检测到没有Cookie,无法解析抖音");
|
e.reply(`检测到没有Cookie,无法解析抖音${HELP_DOC}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const douId = /note\/(\d+)/g.exec(res)?.[1] || /video\/(\d+)/g.exec(res)?.[1];
|
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) {
|
async weixin(e) {
|
||||||
// 判断是否有总结的条件
|
// 判断是否有总结的条件
|
||||||
if (_.isEmpty(this.aiApiKey) || _.isEmpty(this.aiApiKey)) {
|
if (_.isEmpty(this.aiApiKey) || _.isEmpty(this.aiApiKey)) {
|
||||||
e.reply("没有配置 Kimi,无法为您的微信文章总结!\n文档:https://gitee.com/kyrzy0416/rconsole-plugin")
|
e.reply(`没有配置 Kimi,无法为您的微信文章总结!${HELP_DOC}`)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
const urlReg = /(?:https?:\/\/)?mp\.weixin\.qq\.com\/[A-Za-z\d._?%&+\-=\/#]*/g;
|
const urlReg = /(?:https?:\/\/)?mp\.weixin\.qq\.com\/[A-Za-z\d._?%&+\-=\/#]*/g;
|
||||||
|
@ -91,4 +91,6 @@ export const OCR_PROMPT = `
|
|||||||
示例:▲ 文本编辑器中的代码行。▲ const x = 5; const y = 10; const z = x + y; console.log(z);
|
示例:▲ 文本编辑器中的代码行。▲ const x = 5; const y = 10; const z = x + y; console.log(z);
|
||||||
`
|
`
|
||||||
|
|
||||||
export const SUMMARY_PROMPT = `请返回您仔细阅读正文后精心写成的详尽笔记`
|
export const SUMMARY_PROMPT = `请返回您仔细阅读正文后精心写成的详尽笔记`
|
||||||
|
|
||||||
|
export const HELP_DOC = "\n文档:https://gitee.com/kyrzy0416/rconsole-plugin"
|
Loading…
x
Reference in New Issue
Block a user