Remove the "name" part on windows

This commit is contained in:
loicbersier 2019-07-25 17:09:21 +02:00
parent 1aba9f9a81
commit 30e8bef504

View file

@ -47,7 +47,7 @@ class StatsCommand extends Command {
cpu = stdout;
} else if (process.platform == 'win32') {
const { stdout } = await exec('wmic CPU get NAME');
cpu = stdout;
cpu = stdout.replace('Name', '');
}
const statsEmbed = new MessageEmbed()