1
0
Fork 0

Remove the "name" part on windows

akairo
loicbersier 5 years ago
parent 1aba9f9a81
commit 30e8bef504

@ -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()

Loading…
Cancel
Save