From 4203ab40a966d8d10ced8a39af3473c7cf2d62bc Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Mon, 12 Jun 2023 11:26:40 +1000 Subject: [PATCH] An error occurred while executing that command. --- src/commands/dev.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/dev.ts b/src/commands/dev.ts index b1458f2..e1b0a60 100644 --- a/src/commands/dev.ts +++ b/src/commands/dev.ts @@ -115,7 +115,7 @@ export default { }, statsgraph: ()=>{ client.statsGraph = -(interaction.options.getInteger('number', true)); - interaction.reply(`Successfully set to \`${client.statsGraph}\`\n*Total data points: **${JSON.parse(fs.readFileSync(path.join(__dirname, '../database/MPPlayerData.json'), {encoding: 'utf8'})).length.toLocaleString()}***`) + interaction.reply(`Successfully set to \`${client.statsGraph}\`\n*Total data points: **${JSON.parse(fs.readFileSync('src/database/MPPlayerData.json', {encoding: 'utf8'})).length.toLocaleString()}***`) }, logs: ()=>{ interaction.deferReply();