From c7775e7a99eaab810ea16d1c7f68014ae4489b2f Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 9 Jan 2026 01:33:53 -0700 Subject: [PATCH] Remove unneeded macro --- scripts/macros/testRequest.mjs | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 scripts/macros/testRequest.mjs diff --git a/scripts/macros/testRequest.mjs b/scripts/macros/testRequest.mjs deleted file mode 100644 index 1ac661f..0000000 --- a/scripts/macros/testRequest.mjs +++ /dev/null @@ -1,34 +0,0 @@ -const rolls = {}; - -const response = await taf.QueryManager.query( - { - id: `test-data-request`, - question: `Test Data`, - inputs: [ - { - type: `input`, - inputType: `number`, - key: `statBase`, - label: `Stat Base`, - } - ], - }, - { - onSubmit: async (userID, answers) => { - - rolls[userID] = []; - - const diceHTML = []; - for (let i = 0; i < answers.statBase; i++) { - const rolled = Math.floor(Math.random() * 6) + 1; - rolls[userID].push(rolled); - diceHTML.push(`
  • ${rolled}
  • `); - }; - - const content = `Rolls:
      ${diceHTML.join(`\n`)}
    `; - - await taf.QueryManager.notify(userID, content); - }, - } -); -console.log({ response, rolls });