feat: 斜杠命令新增 /签到,自动完成今日签到

This commit is contained in:
pllx
2026-04-28 23:10:00 +08:00
parent df96b56ab0
commit 0850004d39
+15 -3
View File
@@ -9,9 +9,10 @@ const SLASH_COMMANDS = [
name: "/拍一拍", name: "/拍一拍",
description: "向当前选中的聊天对象发送拍一拍,屏幕会抖动", description: "向当前选中的聊天对象发送拍一拍,屏幕会抖动",
icon: "👋", icon: "👋",
fill(input) { fill(_input) {
input.value = "/拍一拍"; if (typeof window.executePat === "function") {
window.persistChatDraft?.("/拍一拍"); window.executePat();
}
}, },
}, },
{ {
@@ -31,6 +32,17 @@ const SLASH_COMMANDS = [
} }
}, },
}, },
{
id: "signin",
name: "/签到",
description: "自动完成今日签到,领取每日奖励",
icon: "✅",
fill(_input) {
if (typeof window.claimDailySignInFromModal === "function") {
window.claimDailySignInFromModal();
}
},
},
]; ];
// ── 菜单状态 ── // ── 菜单状态 ──