From 10d93041fc630719864542378179e6237349adb9 Mon Sep 17 00:00:00 2001 From: itzaname Date: Sat, 18 Mar 2023 22:21:59 -0400 Subject: [PATCH] Fix quatcode --- commands/submissions.js | 2 +- commands/submit.js | 2 +- commands/take.js | 2 +- config/config.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/submissions.js b/commands/submissions.js index 03f1d40..ac183f6 100644 --- a/commands/submissions.js +++ b/commands/submissions.js @@ -31,7 +31,7 @@ module.exports = { option.setName("game") .setDescription("Select the maptest game") .setRequired(true) - .addChoices(commands)) + .addChoices(...commands)) , execute }; diff --git a/commands/submit.js b/commands/submit.js index 126eac9..3510900 100644 --- a/commands/submit.js +++ b/commands/submit.js @@ -95,7 +95,7 @@ module.exports = { option.setName("game") .setDescription("Select the maptest game") .setRequired(true) - .addChoices(commands)) + .addChoices(...commands)) .addIntegerOption(option => option.setName("asset_id") .setDescription("The asset ID of the model") diff --git a/commands/take.js b/commands/take.js index bbe0742..1bb819b 100644 --- a/commands/take.js +++ b/commands/take.js @@ -56,7 +56,7 @@ module.exports = { option.setName("game") .setDescription("Select the maptest game") .setRequired(true) - .addChoices(commands)) + .addChoices(...commands)) .addIntegerOption(option => option.setName("asset_id") .setDescription("The asset ID of the model") diff --git a/config/config.js b/config/config.js index 2717537..e994159 100644 --- a/config/config.js +++ b/config/config.js @@ -1,4 +1,4 @@ -const { bhopCookie, surfCookie, deathrunCookie, flytrialsCookie } = require("config.json"); +const { bhopCookie, surfCookie, deathrunCookie, flytrialsCookie } = require("./config.json"); const cookies = { bhop: bhopCookie, surf: surfCookie, @@ -11,4 +11,4 @@ for (const game in cookies) { submissions[game] = "files/" + game + "_submissions.csv"; commands.push({name: game, value: game}); } -export { cookies, submissions, commands }; +module.exports = { cookies, submissions, commands };