From f5776a584c1d535dcbbe51581c07166c996c9a10 Mon Sep 17 00:00:00 2001 From: Zhell Date: Sun, 18 Jun 2023 10:20:51 +0200 Subject: [PATCH] #2 missing change from `script` to `command`. --- module.json | 6 +++--- scripts/doormacro.mjs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module.json b/module.json index c90dc0a..ed92984 100644 --- a/module.json +++ b/module.json @@ -1,7 +1,7 @@ { "id": "doormacro", "title": "Door Macro", - "version": "11.0.0", + "version": "11.0.1", "authors": [ { "name": "Zhell", @@ -13,7 +13,7 @@ "compatibility": { "minimum": "11", "maximum": "11", - "verified": "11.296" + "verified": "11" }, "esmodules": [ "setup.mjs" @@ -31,5 +31,5 @@ ], "url": "https://github.com/krbz999/doormacro", "manifest": "https://github.com/krbz999/doormacro/releases/latest/download/module.json", - "download": "https://github.com/krbz999/doormacro/releases/download/v11.0.0/module.zip" + "download": "https://github.com/krbz999/doormacro/releases/download/v11.0.1/module.zip" } diff --git a/scripts/doormacro.mjs b/scripts/doormacro.mjs index 532a376..db1a494 100644 --- a/scripts/doormacro.mjs +++ b/scripts/doormacro.mjs @@ -10,9 +10,9 @@ import {MODULE, TRIGGERS} from "./constants.mjs"; */ export function callMacro(wallDoc, trigger, {gmId, userId}) { const data = wallDoc.flags[MODULE]?.[trigger] ?? {}; - if (!data.script) return; + if (!data.command) return; const body = `(async()=>{ - ${data.script} + ${data.command} })();`; const id = data.asGM ? gmId : userId;