const desc = "get info about the bot and stuff"; const usages = " - info "; const trustLevel = 0; const config = require("../config.json"); const os = require("os"); const sleep = require("system-sleep"); function inject (client) { const command = ((args) => { switch (args[0]) { case "config": client.bcraw(`${config.publicColor}Prefixes: ${config.trustedColor}${config.prefix.join(`&8, ${config.trustedColor}`)}\n${config.publicColor}Minecraft version: ${config.trustedColor}${config.version}\n${config.publicColor}Core name: ${config.coreName}`); break; case "os": client.bcraw(`${config.publicColor}Architecture: ${config.trustedColor}${os.arch()}\n${config.publicColor}Platform: ${config.trustedColor}${os.platform()}\n${config.publicColor}Load average: ${config.trustedColor}${os.loadavg()}\n${config.publicColor}Uptime: ${config.trustedColor}${os.uptime()}\n${config.publicColor}Free memory: ${config.trustedColor}${os.freemem()}\n${config.publicColor}Hostname: ${config.trustedColor}${os.hostname()}\n${config.publicColor}Type: ${config.trustedColor}${os.type()}\n${config.publicColor}Total memory: ${config.trustedColor}${os.totalmem()}\n${config.publicColor}Version: ${config.trustedColor}${os.version()}\n${config.publicColor}Homedir: ${config.trustedColor}${os.homedir()}\n${config.publicColor}Tempdir: ${config.trustedColor}${os.tmpdir}\n${config.publicColor}Release: ${config.trustedColor}${os.release()}`); break; case "creator": client.bcraw(`${config.publicColor}RadiumBot${config.trustedColor} was created by &#B30000m&#C64000_&#D98000c&#ECBF00_&#FFFF00p&#F0CC00l&#E19900a&#D16600y&#C23300e&#B30000r`); break; default: client.cmdError("Incorrect argument for command"); break; }; }) client.runCommand = command; return command; } module.exports = { inject, desc, usages, trustLevel };