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(); + } + }, + }, ]; // ── 菜单状态 ──