From 74674ded940bf599d3173614b86bf9348021688e Mon Sep 17 00:00:00 2001 From: Hirzi <64255651+HirziDevs@users.noreply.github.com> Date: Fri, 2 Jul 2021 15:55:07 +0700 Subject: [PATCH] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 869b610..83341a5 100644 --- a/index.js +++ b/index.js @@ -38,7 +38,7 @@ const stats = Client.getServerUsages(id); const status = (stats.current_state); const ch = client.channels.cache.get('837238494765645834') -const msg = channel.messages.cache.get('860438916275240971') +const msg = ch.messages.cache.get('860438916275240971') if(status === 'offline') { msg.edit(`Node is online\nTime : ${Date.now()}`)