From 3fd2546ff6f2eda3f48e15ede6237209e6d9e02b Mon Sep 17 00:00:00 2001 From: Killian Date: Fri, 28 Aug 2020 22:35:04 +0200 Subject: [PATCH] Added memory usage to ping --- Commands/Bot/ping.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Commands/Bot/ping.js b/Commands/Bot/ping.js index 511616e..00f6992 100644 --- a/Commands/Bot/ping.js +++ b/Commands/Bot/ping.js @@ -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`) }) } } \ No newline at end of file diff --git a/package.json b/package.json index f6e8a18..c707a13 100644 --- a/package.json +++ b/package.json @@ -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": {