Added version to stats and workaround for #1
This commit is contained in:
parent
f1fb72294d
commit
ba4ded7b72
2 changed files with 10 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
|||
const client = require("../utils/client.js");
|
||||
const { version } = require("../package.json");
|
||||
const moment = require("moment");
|
||||
require("moment-duration-format");
|
||||
const os = require("os");
|
||||
|
@ -14,6 +15,10 @@ exports.run = async (message) => {
|
|||
"color": 16711680,
|
||||
"description": "**You are currently using esmBot Dev! Things may change at any time without warning and there will be bugs. Many bugs.**",
|
||||
"fields": [{
|
||||
"name": "Version",
|
||||
"value": `v${version}-dev`
|
||||
},
|
||||
{
|
||||
"name": "Memory Usage",
|
||||
"value": `${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)} MB`
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue