refactor: extract ZHUYUAN_HINT constant to avoid duplication
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/691a158a-b7fe-4bc5-a476-044a280dd916
This commit is contained in:
parent
8884bba3f3
commit
060ea1ff48
|
|
@ -29,6 +29,9 @@ const RATE_LIMIT_FILE = '/tmp/discussion-reply-rate.json';
|
||||||
// ── 签名 ──
|
// ── 签名 ──
|
||||||
const SIGNATURE = `\n\n—— 🐙 铸渊 · HoloLake AI Guardian\n自动回复 · 如需人工帮助请 @qinfendebingshuo`;
|
const SIGNATURE = `\n\n—— 🐙 铸渊 · HoloLake AI Guardian\n自动回复 · 如需人工帮助请 @qinfendebingshuo`;
|
||||||
|
|
||||||
|
// ── 铸渊唤醒提示 ──
|
||||||
|
const ZHUYUAN_HINT = `> 💡 **提示**:在评论中包含 \`铸渊\` 两个字即可唤醒 AI 人格体回复你。`;
|
||||||
|
|
||||||
// ── GraphQL 请求 ──
|
// ── GraphQL 请求 ──
|
||||||
function graphqlRequest(query, variables = {}) {
|
function graphqlRequest(query, variables = {}) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|
@ -194,7 +197,7 @@ function generateReply(intent) {
|
||||||
|
|
||||||
请告诉我你需要什么帮助?
|
请告诉我你需要什么帮助?
|
||||||
|
|
||||||
> 💡 **提示**:在评论中包含 \`铸渊\` 两个字即可唤醒我回复。`,
|
${ZHUYUAN_HINT}`,
|
||||||
|
|
||||||
zhuyuan_status: `## ⚒️ 铸渊 · 状态报告
|
zhuyuan_status: `## ⚒️ 铸渊 · 状态报告
|
||||||
|
|
||||||
|
|
@ -269,7 +272,7 @@ Issue 的方式可以让我们更好地跟进进展。感谢你帮助光湖变
|
||||||
- 🔧 技术实现细节
|
- 🔧 技术实现细节
|
||||||
- 🤝 如何参与开发
|
- 🤝 如何参与开发
|
||||||
|
|
||||||
> 💡 **提示**:在评论中包含 \`铸渊\` 两个字即可唤醒 AI 人格体回复你。
|
${ZHUYUAN_HINT}
|
||||||
|
|
||||||
⭐ 也欢迎给我们 Star 支持!`,
|
⭐ 也欢迎给我们 Star 支持!`,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue