From e70b727c9448b5572335cf2e64195a9bb66335b1 Mon Sep 17 00:00:00 2001 From: shy Date: Fri, 6 Dec 2024 09:00:28 +0800 Subject: [PATCH] add some --- frame.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frame.js b/frame.js index 0ecb0457..919b9ee7 100644 --- a/frame.js +++ b/frame.js @@ -97,6 +97,9 @@ Volcanos(chat.ONDAEMON, { can.base.isFunc(sub.Update) && sub.Update() } }, + cookie: function(can, msg, arg) { + can.misc.Cookie(can, arg[1], arg[0]) + }, grant: function(can, msg, sub, arg) { var toast = can.user.toast(can, {duration: arg[1]||10000, content: "grant "+arg[0], action: shy({ confirm: function(event) { toast.close(), can.run(can.request(event, {name: arg[0]}), [ctx.ACTION, ctx.RUN, web.SPACE, aaa.LOGIN]) },