Add hostname to server info

This commit is contained in:
7cc5c4f330d47060 2024-07-24 01:14:04 -04:00
parent 78815ee72a
commit d9a04f0e33
3 changed files with 3 additions and 0 deletions

View file

@ -53,6 +53,7 @@ module.exports = {
if(os.cpus()[0]) c.reply(gr(c.lang,getMessage(c.lang,"command.serverinfo.processor"), os.cpus()[0].model))
c.reply(gr(c.lang,getMessage(c.lang,"command.serverinfo.arch"), os.machine()))
c.reply(gr(c.lang,getMessage(c.lang,"command.serverinfo.osUsername"), os.userInfo().username))
c.reply(gr(c.lang,getMessage(c.lang,"command.serverinfo.hostName"), os.hostname()))
c.reply(gr(c.lang,getMessage(c.lang,"command.serverinfo.runTime"), timeformat(process.uptime() * 1000)))
c.reply(gr(c.lang,getMessage(c.lang,"command.serverinfo.upTime"), timeformat(os.uptime() * 1000)))
c.reply(gr(c.lang,getMessage(c.lang,"command.serverinfo.nodeVersion"), process.version))

View file

@ -52,6 +52,7 @@
"command.serverinfo.processor": "CPU",
"command.serverinfo.arch": "Architecture",
"command.serverinfo.osUsername": "Username",
"command.serverinfo.hostName": "Hostname",
"command.serverinfo.runTime": "Bot uptime",
"command.serverinfo.upTime": "System uptime",
"command.serverinfo.nodeVersion": "Node.js version",

View file

@ -52,6 +52,7 @@
"command.serverinfo.processor": "CPU",
"command.serverinfo.arch": "Awchitectuwe",
"command.serverinfo.osUsername": "Usewnyame",
"command.serverinfo.hostName": "Hostnyame",
"command.serverinfo.runTime": "Bot uptime",
"command.serverinfo.upTime": "System uptime",
"command.serverinfo.nodeVersion": "Nyode.js vewsion",