54 |
apiLatencyIcon = '🟡'; |
apiLatencyIcon = '🟡'; |
55 |
} |
} |
56 |
|
|
57 |
const memoryFree = Math.round((process.memoryUsage().heapUsed / 1024 / 1024 * 100) / 100); |
const memoryTotal = Math.round(process.memoryUsage().heapTotal / 1024 / 1024); |
58 |
|
const memoryUsed = Math.round(process.memoryUsage().heapUsed / 1024 / 1024); |
59 |
|
|
60 |
const msgoptions: any = { |
const msgoptions: any = { |
61 |
embeds: [ |
embeds: [ |
86 |
value: `${apiLatencyIcon} ${apiLatency}ms` |
value: `${apiLatencyIcon} ${apiLatency}ms` |
87 |
}, |
}, |
88 |
{ |
{ |
89 |
name: 'Available Memory', |
name: 'Memory Usage', |
90 |
value: `${1024 - memoryFree}MB / 1.0GB` |
value: `${memoryUsed} MB / ${memoryTotal} MB` |
91 |
}, |
}, |
92 |
{ |
{ |
93 |
name: 'System Platform', |
name: 'System Platform', |