From 0850004d3960639b6f2fc039f60c4ae56ad80dc0 Mon Sep 17 00:00:00 2001 From: pllx Date: Tue, 28 Apr 2026 23:10:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=9C=E6=9D=A0=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=20/=E7=AD=BE=E5=88=B0=EF=BC=8C=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=AE=8C=E6=88=90=E4=BB=8A=E6=97=A5=E7=AD=BE=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/chat-room/slash-commands.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/resources/js/chat-room/slash-commands.js b/resources/js/chat-room/slash-commands.js index 10ce1fa..28485d1 100644 --- a/resources/js/chat-room/slash-commands.js +++ b/resources/js/chat-room/slash-commands.js @@ -9,9 +9,10 @@ const SLASH_COMMANDS = [ name: "/拍一拍", description: "向当前选中的聊天对象发送拍一拍,屏幕会抖动", icon: "👋", - fill(input) { - input.value = "/拍一拍"; - window.persistChatDraft?.("/拍一拍"); + fill(_input) { + if (typeof window.executePat === "function") { + window.executePat(); + } }, }, { @@ -31,6 +32,17 @@ const SLASH_COMMANDS = [ } }, }, + { + id: "signin", + name: "/签到", + description: "自动完成今日签到,领取每日奖励", + icon: "✅", + fill(_input) { + if (typeof window.claimDailySignInFromModal === "function") { + window.claimDailySignInFromModal(); + } + }, + }, ]; // ── 菜单状态 ──