Added memory usage to ping

main
Killian 4 years ago
parent 5d9bf09669
commit 3fd2546ff6

@ -16,7 +16,7 @@ module.exports = class extends Command {
async run(message, args) {
message.chat.sendMessage('Calcul du ping...').then(m => {
m.delete();
message.chat.sendMessage(`Mon ping est de ${(m.timestamp - message.timestamp) / 1000}ms`)
message.chat.sendMessage(`My ping is currently at ${(m.timestamp - message.timestamp) / 1000}ms\nI use ${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)}mb of RAM`)
})
}
}

@ -1,6 +1,6 @@
{
"name": "instabot",
"version": "1.1.5",
"version": "1.1.9",
"description": "A fully working instagram bot using Insta.js by androz2091",
"main": "index.js",
"scripts": {

Loading…
Cancel
Save