$hostCPU
A Compact Function resolving data about your hosts CPU Processor with 16 options to choose from.

FUNCTION USAGE

    $hostCPU[option]

Properties:

option - The data option.

OPTIONS:

Option
Description
avgload
The average load on the CPU measured in percent. (Some hosts may return 0.00. Means it cannot fetch the data from the host)
avgspeed
The average speed the CPU is running at measured in Gigahertz (GHz)
brand
The CPU Processor Brand.
cache
The amount of cache taken up on each core measured in bytes.
cores
The number of cores of your CPU Processor.
currentload
The current load on the CPU measured in percent. (Some hosts may return 0.00. Means it cannot fetch the data from the host)
manufacturer
The name of the company that made the CPU Processor.
maxspeed
The maximum speed the CPU is aloud to run at measured in Gigahertz (GHz)
minspeed
The minimum speed the CPU is aloud to run at measured in Gigahertz (GHz)
model
The model number
physicalcores
The number of physical cores of your CPU Processor.
processors
The number of processors your CPU has.
socket
The processor socket.
vendor
The name of the vendor of the CPU Processor.
virtualization
Returns true if virtualization is enabled in the CPU.
voltage
The voltage of the CPU. Some hosts may not provide this data.

Example 1: Returns the cache taken up on each core.

1
bot.Command({
2
name: "test",
3
code: `
4
$hostCPU[cache]
5
`
6
})
Copied!

Example 2: Returns the processor socket.

1
bot.Command({
2
name: "test",
3
code: `
4
$hostCPU[socket]
5
`
6
})
Copied!
Last modified 1mo ago
Copy link