@@ -26,6 +32,57 @@ export function GeneralSettingsTab({ config, onChange }: GeneralSettingsTabProps
用于音乐分享卡片签名。未配置时音乐相关消息段会回落为普通文本。
+
+
+
+
+
+
+ 收到纯文本 #sl 时回复 SnowLuma 版本 / 平台 / 运行时长。任何人可触发,关闭后完全不响应。
+
+
+
setStatusCommand({ enabled: v })}
+ ariaLabel="启用 #sl 状态命令"
+ />
+
+
+
+
+
+
+ 开启后,命中的 #sl 不再投递给已连接的 Bot(仍会回复并本地记录)。默认关闭即透传。
+
+
+
setStatusCommand({ swallow: v })}
+ ariaLabel="吞掉 #sl 不转发给下游"
+ disabled={!sc.enabled}
+ />
+
+
+
+
+
{
+ const n = Math.trunc(Number(e.target.value));
+ setStatusCommand({ cooldownSeconds: Number.isFinite(n) && n >= 0 ? n : 0 });
+ }}
+ />
+
+ 同一会话在该秒数内重复 #sl 不再回复,防刷屏。0 表示不限制。
+
+
+
);
}
diff --git a/packages/webui/src/components/config/node-summary-card.tsx b/packages/webui/src/components/config/node-summary-card.tsx
index 85eba824..86d28243 100644
--- a/packages/webui/src/components/config/node-summary-card.tsx
+++ b/packages/webui/src/components/config/node-summary-card.tsx
@@ -7,6 +7,7 @@ import { motion } from 'motion/react';
import { Pencil, Trash2 } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Badge } from '@/components/ui/badge';
+import { ToggleSwitch } from '@/components/ui/toggle-switch';
import { cn } from '@/lib/utils';
import type { AdapterCommon } from './defaults';
import type { AdapterStatus } from '@/types';
@@ -126,30 +127,3 @@ export function NodeSummaryCard