Check Bot Specifications with 'botspec' Command
import os from 'os';
const handler = async (m, { conn, text }) => { const totalStorage = Math.floor(os.totalmem() / 1024 / 1024) + 'MB'; const freeStorage = Math.floor(os.freemem() / 1024 / 1024) + 'MB'; const cpuModel = os.cpus()[0].model; const cpuSpeed = os.cpus()[0].speed / 1000; const cpuCount = os.cpus().length;
const message = ` Your Bot Specifications:
• Total Storage: ${totalStorage} • Free Storage: ${freeStorage} • CPU Model: ${cpuModel} • CPU Speed: ${cpuSpeed} GHz • Number of CPU Cores: ${cpuCount} `;
m.reply(message); };
handler.help = ['botspec']; handler.tags = ['tools']; handler.command = /^botspec$/i;
export default handler;
原文地址: https://www.cveoy.top/t/topic/vIW 著作权归作者所有。请勿转载和采集!