From ee51fa10308793316f9f4ffc22c2b0cce9f4caa0 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Sun, 29 Oct 2023 18:42:06 -0700 Subject: [PATCH] update/better bot stats --- commands/stats.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/stats.js b/commands/stats.js index 05f6742..f070453 100644 --- a/commands/stats.js +++ b/commands/stats.js @@ -20,8 +20,7 @@ module.exports = { * @param {*} param3 */ run: async (client, interaction, args, { GuildDB }, start) => { - let packageDir = path.join(__dirname, '..', 'package.json'); - let package = JSON.parse(fs.readFileSync(packageDir)); + let package = JSON.parse(fs.readFileSync('../package.json')); const end = new Date().getTime(); const stats = new EmbedBuilder()