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 });