From af6ba645f80053f834b94b239b1c58bc638ed838 Mon Sep 17 00:00:00 2001 From: Bsian Date: Sat, 2 Nov 2019 13:28:20 +0000 Subject: [PATCH] use result path --- src/commands/disk.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/disk.ts b/src/commands/disk.ts index 51788ed..fe656c5 100644 --- a/src/commands/disk.ts +++ b/src/commands/disk.ts @@ -30,7 +30,7 @@ export default class Disk extends Command { const embed = new RichEmbed(); embed.setTitle('Disk Usage'); embed.setColor('ff0000'); - embed.setDescription(`/home/${account.username}`); + embed.setDescription(result.split(/ +/g)[1]); embed.addField('Result', dataConversion(Number(result.split(/ +/g)[0])), true); embed.addField('Time taken', totalTime, true); embed.setFooter(`Requested by ${message.author.username}#${message.author.discriminator}`, message.author.avatarURL);