Skip to content

Commit

Permalink
#2
Browse files Browse the repository at this point in the history
missing change from `script` to `command`.
  • Loading branch information
krbz999 committed Jun 18, 2023
1 parent 4d92c85 commit f5776a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions module.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "doormacro",
"title": "Door Macro",
"version": "11.0.0",
"version": "11.0.1",
"authors": [
{
"name": "Zhell",
Expand All @@ -13,7 +13,7 @@
"compatibility": {
"minimum": "11",
"maximum": "11",
"verified": "11.296"
"verified": "11"
},
"esmodules": [
"setup.mjs"
Expand All @@ -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"
}
4 changes: 2 additions & 2 deletions scripts/doormacro.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f5776a5

Please sign in to comment.