FridayNightFunkinBoyfriendBot/commands/memused.js

18 lines
428 B
JavaScript
Raw Permalink Normal View History

2024-02-20 11:58:22 -05:00
module.exports = {
name: 'memused',
execute (context) {
const bot = context.bot
const message = context.arguments.join(' ')
const os = require('os')
context.source.sendFeedback(`§aMem §aused §a${Math.floor(os.freemem() / 1048576)} §aMiB §a/ §a${Math.floor(os.totalmem() / 1048576)} MiB`, false)
}
}
/*
var os = require('os');
console.log(os.cpus());
console.log(os.totalmem());
console.log(os.freemem())
*/