Skip to content

$cpu

$cpu will return CPU usage of a process or the OS.

Usage

$cpu[option?]

Parameters

FieldTypeDescriptionRequired
option?stringThe option that the CPU usage will be returned of.
1. os - returns the CPU usage of the bot
2. process - returns the CPU usage of the process
false

Example(s)

This will return the CPU usage of your bot:

1
client.command({
2
name: "cpu",
3
code: `
4
OS: $cpu[os]
5
Process: $cpu[process]
6
`
7
});