Remove the "name" part on windows
This commit is contained in:
parent
1aba9f9a81
commit
30e8bef504
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class StatsCommand extends Command {
|
||||||
cpu = stdout;
|
cpu = stdout;
|
||||||
} else if (process.platform == 'win32') {
|
} else if (process.platform == 'win32') {
|
||||||
const { stdout } = await exec('wmic CPU get NAME');
|
const { stdout } = await exec('wmic CPU get NAME');
|
||||||
cpu = stdout;
|
cpu = stdout.replace('Name', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
const statsEmbed = new MessageEmbed()
|
const statsEmbed = new MessageEmbed()
|
||||||
|
|
Loading…
Reference in a new issue